Share via


X509SubjectKeyIdentifierClause 類別

定義

表示金鑰識別碼子句,這個子句會識別使用 X.509 憑證之主體金鑰識別碼延伸的 X509SecurityToken 安全性權杖。

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

備註

除了在建立自訂安全性權杖服務時,通常並不需要使用 X509SubjectKeyIdentifierClause。 當安全性權杖服務傳回安全性權杖時,所發出的安全性權杖會包含已附加及未附加之安全性權杖的參考。 附加的參考會參考包含在 SOAP 訊息之安全性標頭中的安全性權杖,而未附加的參考是指不包含在 SOAP 訊息之安全性標頭中的安全性權杖。 這些參考通常會證明這些發出之安全性權杖的真實性。 使用 X509ThumbprintKeyIdentifierClause 類別,即可參考使用 X.509 憑證之主體金鑰識別碼的 X509SecurityToken 安全性權杖。 GetX509SubjectKeyIdentifier 方法會傳回主體金鑰識別碼延伸。

Windows Communication Foundation 支援安全性令牌的下列安全性令牌參考 X509SecurityToken 類型。

X509ThumbprintKeyIdentifierClause

建構函式

X509SubjectKeyIdentifierClause(Byte[])

使用指定的主體金鑰識別碼,初始化 X509SubjectKeyIdentifierClause 類別的新執行個體。

屬性

CanCreateKey

取得指出是否能夠建立金鑰的值。

(繼承來源 SecurityKeyIdentifierClause)
ClauseType

取得金鑰識別碼子句型別。

(繼承來源 SecurityKeyIdentifierClause)
DerivationLength

取得衍生金鑰大小。

(繼承來源 SecurityKeyIdentifierClause)
Id

取得或設定金鑰識別碼子句 ID。

(繼承來源 SecurityKeyIdentifierClause)

方法

CanCreateFrom(X509Certificate2)

取得值,這個值會指出是否可以為指定的 X.509 憑證建立金鑰識別碼子句。

CreateKey()

根據傳入建構函式的參數來建立金鑰。

(繼承來源 SecurityKeyIdentifierClause)
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetBuffer()

取得表示金鑰識別碼的二進位資料。

(繼承來源 BinaryKeyIdentifierClause)
GetDerivationNonce()

取得用來產生衍生金鑰的 Nonce。

(繼承來源 SecurityKeyIdentifierClause)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetRawBuffer()

取得表示金鑰識別碼的二進位資料。

(繼承來源 BinaryKeyIdentifierClause)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
GetX509SubjectKeyIdentifier()

取得主體金鑰識別碼。

Matches(Byte[])

傳回值,這個值會指出目前執行個體的二進位資料是否符合指定的二進位資料。

(繼承來源 BinaryKeyIdentifierClause)
Matches(Byte[], Int32)

傳回值,這個值會指出目前執行個體的二進位資料是否相等於具有所指定偏差的已指定二進位資料。

(繼承來源 BinaryKeyIdentifierClause)
Matches(SecurityKeyIdentifierClause)

傳回值,這個值會指出這個執行個體的金鑰識別碼是否相等於指定的金鑰識別碼子句。

(繼承來源 BinaryKeyIdentifierClause)
Matches(X509Certificate2)

傳回值,這個值會指出這個執行個體的金鑰識別碼是否相等於指定之 X.509 憑證的金鑰識別碼。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

TryCreateFrom(X509Certificate2, X509SubjectKeyIdentifierClause)

使用指定的 X.509 憑證來建立金鑰識別碼子句。

適用於