X509RawDataKeyIdentifierClause 类

定义

表示一个密钥标识符子句,它使用 X.509 证书的原始数据标识 X509SecurityToken 安全令牌。Represents a key identifier clause that identifies a X509SecurityToken security token using the X.509 certificate's raw data.

public ref class X509RawDataKeyIdentifierClause : System::IdentityModel::Tokens::BinaryKeyIdentifierClause
public class X509RawDataKeyIdentifierClause : System.IdentityModel.Tokens.BinaryKeyIdentifierClause
type X509RawDataKeyIdentifierClause = class
    inherit BinaryKeyIdentifierClause
Public Class X509RawDataKeyIdentifierClause
Inherits BinaryKeyIdentifierClause
继承

注解

除非创建自定义安全令牌服务,否则,通常不需要使用 X509RawDataKeyIdentifierClauseTypically, the X509RawDataKeyIdentifierClause does not need to be used, other than when a custom security token service is created. 当安全令牌服务返回安全令牌时,已颁发的安全令牌包含对附加的和未附加的安全令牌的引用。When a security token service returns a security token, the issued security token contains references to attached and unattached security tokens. 附加引用是指包含在 SOAP 消息的安全标头中的安全令牌,而未附加引用则是未包含在 SOAP 消息的安全标头中的安全令牌。Attached references refer to security tokens that are contained within the security header of a SOAP message and unattached references are security tokens that are not included within the security header of a SOAP message. 这些引用通常确认已颁发的安全令牌的真实性。These references typically affirm the authenticity of the issued security token. 使用 X509RawDataKeyIdentifierClause 类来引用利用了 X.509 证书原始数据的 X509SecurityToken 安全令牌。Use the X509RawDataKeyIdentifierClause class to reference a X509SecurityToken security token using the X.509 certificate's raw data. GetX509RawData 方法返回原始数据。The GetX509RawData method returns the raw data.

Windows Communication Foundation (WCF) 支持安全令牌的以下安全令牌引用类型 X509SecurityTokenWindows Communication Foundation (WCF) supports the following types of security token references for X509SecurityToken security tokens.

X509ThumbprintKeyIdentifierClause

构造函数

X509RawDataKeyIdentifierClause(Byte[])

使用指定的 X.509 证书原始数据初始化 X509RawDataKeyIdentifierClause 类的新实例。Initializes a new instance of the X509RawDataKeyIdentifierClause class using the specified raw data of an X.509 certificate.

X509RawDataKeyIdentifierClause(X509Certificate2)

使用指定的 X.509 证书初始化 X509RawDataKeyIdentifierClause 类的新实例。Initializes a new instance of the X509RawDataKeyIdentifierClause class using the specified X.509 certificate.

属性

CanCreateKey

获取一个值,该值指示是否可以从 X.509 证书的原始数据或从构造函数中指定的字节数组来创建密钥。Gets a value that indicates whether a key can be created from the raw data of the X.509 certificate or byte array that is specified in the constructor.

ClauseType

获取密钥标识符子句类型。Gets the key identifier clause type.

(继承自 SecurityKeyIdentifierClause)
DerivationLength

获取派生密钥的大小。Gets the size of the derived key.

(继承自 SecurityKeyIdentifierClause)
Id

获取或设置密钥标识符子句 ID。Gets or sets the key identifier clause ID.

(继承自 SecurityKeyIdentifierClause)

方法

CreateKey()

从 X.509 证书的原始数据或从构造函数中指定的字节数组创建密钥。Creates a key from the raw data of the X.509 certificate or byte array that is specified in the constructor.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetBuffer()

获取表示密钥标识符的二进制数据。Gets the binary data that represents the key identifier.

(继承自 BinaryKeyIdentifierClause)
GetDerivationNonce()

获取用于生成派生密钥的 Nonce。Gets the nonce that was used to generate the derived key.

(继承自 SecurityKeyIdentifierClause)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetRawBuffer()

获取表示密钥标识符的二进制数据。Gets the binary data that represents the key identifier.

(继承自 BinaryKeyIdentifierClause)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
GetX509RawData()

获取与 X.509 证书相关联的原始数据。Gets the raw data associated with the X.509 certificate.

Matches(Byte[])

返回一个值,该值指示当前实例的二进制数据是否与指定的二进制数据相匹配。Returns a value that indicates whether the binary data for the current instance matches the specified binary data.

(继承自 BinaryKeyIdentifierClause)
Matches(Byte[], Int32)

返回一个值,该值指示当前实例的二进制数据是否与指定偏移处的指定二进制数据等效。Returns a value that indicates whether the binary data for the current instance is equivalent to the specified binary data at the specified offset.

(继承自 BinaryKeyIdentifierClause)
Matches(SecurityKeyIdentifierClause)

返回一个值,该值指示此实例的密钥标识符是否等效于指定的密钥标识符子句。Returns a value that indicates whether the key identifier for this instance is equivalent to the specified key identifier clause.

(继承自 BinaryKeyIdentifierClause)
Matches(X509Certificate2)

返回一个值,该值指示此实例的密钥标识符是否与指定的 X.509 证书相等。Returns a value that indicates whether the key identifier for this instance is equivalent to the specified X.509 certificate.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回当前对象。Returns the current object.

适用于