Share via


RsaKeyIdentifierClause 類別

定義

表示金鑰識別碼子句,這個子句會識別 RsaSecurityToken 安全性權杖。

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

備註

除了在建立自訂安全性權杖服務時,通常並不需要使用 RsaKeyIdentifierClause。 當安全性權杖服務傳回安全性權杖時,所發出的安全性權杖會包含已附加及未附加之安全性權杖的參考。 附加的參考會參考包含在 SOAP 訊息之安全性標頭中的安全性權杖,而未附加的參考是指不包含在 SOAP 訊息之安全性標頭中的安全性權杖。 這些參考通常會證明這些發出之安全性權杖的真實性。 使用 RsaKeyIdentifierClause 類別,即可參考 RsaSecurityToken 安全性權杖和存取 RSA 演算法。 為了存取 RSA 演算法,此時要取得 Rsa 屬性的值。

建構函式

RsaKeyIdentifierClause(RSA)

使用指定的 RSA 演算法,初始化 RsaKeyIdentifierClause 類別的新執行個體。

屬性

CanCreateKey

取得值,這個值會指出是否可以從金鑰識別碼子句建立金鑰。

ClauseType

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

(繼承來源 SecurityKeyIdentifierClause)
DerivationLength

取得衍生金鑰大小。

(繼承來源 SecurityKeyIdentifierClause)
Id

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

(繼承來源 SecurityKeyIdentifierClause)
Rsa

取得與金鑰識別碼子句關聯的 RSA 演算法。

方法

CreateKey()

使用 RSA 演算法建立金鑰。

Equals(Object)

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

(繼承來源 Object)
GetDerivationNonce()

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

(繼承來源 SecurityKeyIdentifierClause)
GetExponent()

取得 RSA 演算法的 Exponent 參數。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetModulus()

取得 RSA 演算法的 Modulus 參數。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
Matches(RSA)

傳回值,這個值會指出這個執行個體的金鑰識別碼是否與指定的 RSA 演算法相符。

Matches(SecurityKeyIdentifierClause)

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

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

WriteExponentAsBase64(XmlWriter)

將 RSA 演算法的 Exponent 參數 (採用 Base64 編碼) 寫入至指定的 XML 序列化程式。

WriteModulusAsBase64(XmlWriter)

將 RSA 演算法的 Modulus 參數 (採用 Base64 編碼) 寫入至指定的 XML 序列化程式。

適用於