RsaSecurityToken 類別

定義

表示以應用 RSA 演算法建立之金鑰為基礎的安全性權杖。

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

備註

一般來說,應用程式開發者並不需要使用 RsaSecurityToken 類別,除非 Web 服務必須取得與安全性權杖相關聯的 RSA 演算法。 為了取得 RSA 演算法,此時會取得 Rsa 屬性的值。

建構函式

RsaSecurityToken(RSA)

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

RsaSecurityToken(RSA, String)

使用指定的 RSA 演算法以及唯一識別碼,初始化 RsaSecurityToken 類別的新執行個體。

屬性

Id

取得安全性權杖的唯一識別碼。

Rsa

取得可以建立非對稱金鑰的 RSA 演算法。

SecurityKeys

取得與安全性權杖相關聯的密碼編譯金鑰。

ValidFrom

取得這個安全性權杖有效的第一個瞬間。

ValidTo

取得這個安全性權杖有效的最後一個瞬間。

方法

CanCreateKeyIdentifierClause<T>()

取得值,這個值會指出這個安全性權杖是否能夠建立指定的金鑰識別碼。

CreateKeyIdentifierClause<T>()

建立指定的金鑰識別碼子句。

Equals(Object)

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

(繼承來源 Object)
Finalize()

允許 RsaSecurityToken 在由記憶體回收行程終結之前釋放資源。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MatchesKeyIdentifierClause(SecurityKeyIdentifierClause)

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

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ResolveKeyIdentifierClause(SecurityKeyIdentifierClause)

取得指定之金鑰識別碼子句的金鑰。

(繼承來源 SecurityToken)
ToString()

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

(繼承來源 Object)

適用於