X509KeyIdentifierClauseType Enum

Definition

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

C#
public enum X509KeyIdentifierClauseType
Inheritance
X509KeyIdentifierClauseType

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 IssuerSerial reference is used: the issuer identifier plus a serial number that is unique for an issuer.

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.

C#
AsymmetricSecurityBindingElement abe =
    (AsymmetricSecurityBindingElement)SecurityBindingElement.
    CreateMutualCertificateBindingElement(
    MessageSecurityVersion.
    WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10);

abe.SetKeyDerivation(false);

X509SecurityTokenParameters istp =
   abe.InitiatorTokenParameters as X509SecurityTokenParameters;
if (istp != null)
{
    istp.X509ReferenceStyle =
    X509KeyIdentifierClauseType.IssuerSerial;
}

Applies to

Produkt Verzie
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1