X509KeyIdentifierClauseType Enumeration


An enumeration listing the possible types of X.509 key identifier clauses.

Namespace:   System.ServiceModel.Security.Tokens
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

Public Enumeration X509KeyIdentifierClauseType

Member nameDescription

SubjectKeyIdentifier is used if present in the X.509 certificate, otherwise IssuerSerial is used.


The IssuerSerial reference is used: the issuer identifier plus a serial number that is unique for an issuer.


The reference contains the raw data for the entire X.509 certificate.


Reference is based on the subject key identifier extension of an X.509 certificate (not all certificates have one, it is an optional property).


The X.509 Thumbprint is used.

The following code shows how to set the X509ReferenceStyle property to a member of this enumeration.

Dim abe As AsymmetricSecurityBindingElement = CType(SecurityBindingElement.CreateMutualCertificateBindingElement(MessageSecurityVersion.WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10), AsymmetricSecurityBindingElement)


Dim istp As X509SecurityTokenParameters = TryCast(abe.InitiatorTokenParameters, X509SecurityTokenParameters)
If istp IsNot Nothing Then
	istp.X509ReferenceStyle = X509KeyIdentifierClauseType.IssuerSerial
End If

.NET Framework
Available since 3.0
Return to top