X509KeyIdentifierClauseType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An enumeration listing the possible types of X.509 key identifier clauses.
public enum class X509KeyIdentifierClauseType
public enum X509KeyIdentifierClauseType
type X509KeyIdentifierClauseType =
Public Enum X509KeyIdentifierClauseType
- Inheritance
Fields
Name | Value | Description |
---|---|---|
Any | 0 | SubjectKeyIdentifier is used if present in the X.509 certificate, otherwise IssuerSerial is used. |
Thumbprint | 1 | The X.509 Thumbprint is used. |
IssuerSerial | 2 | The |
SubjectKeyIdentifier | 3 | Reference is based on the subject key identifier extension of an X.509 certificate (not all certificates have one, it is an optional property). |
RawDataKeyIdentifier | 4 | The reference contains the raw data for the entire X.509 certificate. |
Examples
The following code shows how to set the X509ReferenceStyle property to a member of this enumeration.
AsymmetricSecurityBindingElement abe =
(AsymmetricSecurityBindingElement)SecurityBindingElement.
CreateMutualCertificateBindingElement(
MessageSecurityVersion.
WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10);
abe.SetKeyDerivation(false);
X509SecurityTokenParameters istp =
abe.InitiatorTokenParameters as X509SecurityTokenParameters;
if (istp != null)
{
istp.X509ReferenceStyle =
X509KeyIdentifierClauseType.IssuerSerial;
}
Dim abe As AsymmetricSecurityBindingElement = CType(SecurityBindingElement.CreateMutualCertificateBindingElement(MessageSecurityVersion.WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10), AsymmetricSecurityBindingElement)
abe.SetKeyDerivation(False)
Dim istp As X509SecurityTokenParameters = TryCast(abe.InitiatorTokenParameters, X509SecurityTokenParameters)
If istp IsNot Nothing Then
istp.X509ReferenceStyle = X509KeyIdentifierClauseType.IssuerSerial
End If