X509SecurityToken X509SecurityToken X509SecurityToken X509SecurityToken Class

定義

表示以 X.509 憑證為基礎的安全性權杖。Represents a security token that is based upon an X.509 certificate.

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
繼承
X509SecurityTokenX509SecurityTokenX509SecurityTokenX509SecurityToken
衍生
實作

備註

如需取得 X.509 憑證的詳細資料,請存取 Certificate 屬性。To get the details of the X.509 certificate, access the Certificate property.

建構函式

X509SecurityToken(X509Certificate2) X509SecurityToken(X509Certificate2) X509SecurityToken(X509Certificate2) X509SecurityToken(X509Certificate2)

使用指定的 X.509 憑證,初始化 X509SecurityToken 類別的新執行個體。Initializes a new instance of the X509SecurityToken class using the specified X.509 certificate.

X509SecurityToken(X509Certificate2, String) X509SecurityToken(X509Certificate2, String) X509SecurityToken(X509Certificate2, String) X509SecurityToken(X509Certificate2, String)

使用指定的 X.509 憑證和唯一識別碼,初始化 X509SecurityToken 類別的新執行個體。Initializes a new instance of the X509SecurityToken class using the specified X.509 certificate and unique identifier.

屬性

Certificate Certificate Certificate Certificate

取得與安全性權杖關聯的 X.509 憑證。Gets the X.509 certificate associated with the security token.

Id Id Id Id

取得安全性權杖的唯一識別碼。Gets a unique identifier of the security token.

SecurityKeys SecurityKeys SecurityKeys SecurityKeys

取得與安全性權杖相關聯的密碼編譯金鑰。Gets the cryptographic keys associated with the security token.

ValidFrom ValidFrom ValidFrom ValidFrom

取得這個安全性權杖有效的第一個瞬間。Gets the first instant in time at which this security token is valid.

ValidTo ValidTo ValidTo ValidTo

取得這個安全性權杖有效的最後一個瞬間。Gets the last instant in time at which this security token is valid.

方法

CanCreateKeyIdentifierClause<T>() CanCreateKeyIdentifierClause<T>() CanCreateKeyIdentifierClause<T>() CanCreateKeyIdentifierClause<T>()

取得值,這個值會指出這個安全性權杖是否能夠建立指定的金鑰識別碼。Gets a value indicating whether this security token is capable of creating the specified key identifier.

CreateKeyIdentifierClause<T>() CreateKeyIdentifierClause<T>() CreateKeyIdentifierClause<T>() CreateKeyIdentifierClause<T>()

建立指定的金鑰識別碼子句。Creates the specified key identifier clause.

Dispose() Dispose() Dispose() Dispose()

釋放 X509SecurityToken 所使用的所有資源。Releases all resources used by the X509SecurityToken.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MatchesKeyIdentifierClause(SecurityKeyIdentifierClause) MatchesKeyIdentifierClause(SecurityKeyIdentifierClause) MatchesKeyIdentifierClause(SecurityKeyIdentifierClause) MatchesKeyIdentifierClause(SecurityKeyIdentifierClause)

傳回值,這個值會指出此執行個體的金鑰識別碼是否等於指定的金鑰識別碼。Returns a value indicating whether the key identifier for this instance is equal to the specified key identifier.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ResolveKeyIdentifierClause(SecurityKeyIdentifierClause) ResolveKeyIdentifierClause(SecurityKeyIdentifierClause) ResolveKeyIdentifierClause(SecurityKeyIdentifierClause) ResolveKeyIdentifierClause(SecurityKeyIdentifierClause)

取得指定之金鑰識別碼子句的金鑰。Gets the key for the specified key identifier clause.

(Inherited from SecurityToken)
ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed()

如果已經對這個執行個體呼叫 ThrowIfDisposed() 方法,則會擲回例外狀況。Throws an exception if the ThrowIfDisposed() method has been called for this instance.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於