X509SecurityToken 類別

定義

表示以 X.509 憑證為基礎的安全性權杖。

public ref class X509SecurityToken : System::IdentityModel::Tokens::SecurityToken, IDisposable
public class X509SecurityToken : System.IdentityModel.Tokens.SecurityToken, IDisposable
type X509SecurityToken = class
    inherit SecurityToken
    interface IDisposable
Public Class X509SecurityToken
Inherits SecurityToken
Implements IDisposable
繼承
X509SecurityToken
衍生
實作

備註

如需取得 X.509 憑證的詳細資料,請存取 Certificate 屬性。

建構函式

X509SecurityToken(X509Certificate2)

使用指定的 X.509 憑證,初始化 X509SecurityToken 類別的新執行個體。

X509SecurityToken(X509Certificate2, String)

使用指定的 X.509 憑證和唯一識別碼,初始化 X509SecurityToken 類別的新執行個體。

屬性

Certificate

取得與安全性權杖關聯的 X.509 憑證。

Id

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

SecurityKeys

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

ValidFrom

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

ValidTo

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

方法

CanCreateKeyIdentifierClause<T>()

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

CreateKeyIdentifierClause<T>()

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

Dispose()

釋放 X509SecurityToken 所使用的所有資源。

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MatchesKeyIdentifierClause(SecurityKeyIdentifierClause)

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

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ResolveKeyIdentifierClause(SecurityKeyIdentifierClause)

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

(繼承來源 SecurityToken)
ThrowIfDisposed()

如果已經對這個執行個體呼叫 ThrowIfDisposed() 方法,則會擲回例外狀況。

ToString()

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

(繼承來源 Object)

適用於