WindowsSecurityToken 類別

定義

表示以 Windows 網域或使用者帳戶之身分識別為基礎的安全性權杖。

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

備註

一般來說,應用程式開人員者並不需要使用 WindowsSecurityToken 類別,除非 Web 服務必須存取與 WindowsSecurityToken 安全性權杖關聯之 Windows 網域或使用者帳戶的詳細資料。 若要取得 Windows 網域或使用者帳戶的詳細資料,請存取 WindowsIdentity 屬性。

建構函式

WindowsSecurityToken()

初始化 WindowsSecurityToken 類別的新執行個體。

WindowsSecurityToken(WindowsIdentity)

使用 Windows 使用者初始化 WindowsSecurityToken 類別的新執行個體。

WindowsSecurityToken(WindowsIdentity, String)

使用 Windows 使用者初始化 WindowsSecurityToken 類別的新執行個體。

WindowsSecurityToken(WindowsIdentity, String, String)

建立 WindowsSecurityToken 的新執行個體。

屬性

AuthenticationType

取得權杖的驗證類型。

Id

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

SecurityKeys

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

ValidFrom

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

ValidTo

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

WindowsIdentity

取得與這個安全性權杖關聯的 Windows 使用者。

方法

CanCreateKeyIdentifierClause<T>()

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

(繼承來源 SecurityToken)
CreateKeyIdentifierClause<T>()

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

(繼承來源 SecurityToken)
Dispose()

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

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
Initialize(String, DateTime, DateTime, WindowsIdentity, Boolean)

使用指定的唯一識別碼、Windows 使用者,以及第一個和最後一個有效安全性權杖的瞬間,初始化 WindowsSecurityToken 類別的新執行個體。

Initialize(String, String, DateTime, DateTime, WindowsIdentity, Boolean)

初始化 WindowsSecurityToken 類別的新執行個體。

MatchesKeyIdentifierClause(SecurityKeyIdentifierClause)

傳回值,這個值會指出這個執行個體的金鑰識別碼是否能夠解析為指定的金鑰識別碼。

(繼承來源 SecurityToken)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ResolveKeyIdentifierClause(SecurityKeyIdentifierClause)

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

(繼承來源 SecurityToken)
ThrowIfDisposed()

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

ToString()

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

(繼承來源 Object)

適用於