X509SecurityTokenProvider X509SecurityTokenProvider X509SecurityTokenProvider X509SecurityTokenProvider Class

定義

表示安全性權杖提供者,這個提供者會為 SOAP 訊息寄件者提供 X509SecurityToken 安全性權杖。Represents a security token provider that provides X509SecurityToken security tokens for a SOAP message sender.

public ref class X509SecurityTokenProvider : System::IdentityModel::Selectors::SecurityTokenProvider, IDisposable
public class X509SecurityTokenProvider : System.IdentityModel.Selectors.SecurityTokenProvider, IDisposable
type X509SecurityTokenProvider = class
    inherit SecurityTokenProvider
    interface IDisposable
Public Class X509SecurityTokenProvider
Inherits SecurityTokenProvider
Implements IDisposable
繼承
X509SecurityTokenProviderX509SecurityTokenProviderX509SecurityTokenProviderX509SecurityTokenProvider
實作

備註

在大部分情況中,並不需要直接呼叫 X509SecurityTokenProvider 類別,因為當用戶端傳送需要 X509SecurityToken 安全性權杖的 SOAP 訊息時就會呼叫它。In most instances it is not necessary to call the X509SecurityTokenProvider class directly, as it is called when a client sends a SOAP message that requires a X509SecurityToken security token. 具體地說,用戶端會使用 ClientCredentials 類別指定所需要安全性權杖的型別,而 ClientCredentials 類別則呼叫 GetToken 方法來取得安全性權杖。Specifically, a client specifies the type of security token required, using the ClientCredentials class and the ClientCredentials class calls the GetToken method to get a security token. 當所需的安全性權杖為 X509SecurityToken 安全性權杖時,GetToken 方法就會呼叫 GetTokenCore 方法。When the security token required is an X509SecurityToken security token, the GetToken method calls the GetTokenCore method.

建構函式

X509SecurityTokenProvider(StoreLocation, StoreName, X509FindType, Object) X509SecurityTokenProvider(StoreLocation, StoreName, X509FindType, Object) X509SecurityTokenProvider(StoreLocation, StoreName, X509FindType, Object) X509SecurityTokenProvider(StoreLocation, StoreName, X509FindType, Object)

透過從指定的憑證存放區準則取得 X.509 憑證,初始化 X509SecurityTokenProvider 類別的新執行個體。Initializes a new instance of the X509SecurityTokenProvider class by getting an X.509 certificate from the specified certificate store criteria.

X509SecurityTokenProvider(X509Certificate2) X509SecurityTokenProvider(X509Certificate2) X509SecurityTokenProvider(X509Certificate2) X509SecurityTokenProvider(X509Certificate2)

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

屬性

Certificate Certificate Certificate Certificate

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

SupportsTokenCancellation SupportsTokenCancellation SupportsTokenCancellation SupportsTokenCancellation

取得值,這個值表示是否可以取消安全性權杖。Gets a value that indicates whether the security token can be cancelled.

(Inherited from SecurityTokenProvider)
SupportsTokenRenewal SupportsTokenRenewal SupportsTokenRenewal SupportsTokenRenewal

取得值,這個值表示是否可以更新安全性權杖。Gets a value that indicates whether the security token is renewable.

(Inherited from SecurityTokenProvider)

方法

BeginCancelToken(TimeSpan, SecurityToken, AsyncCallback, Object) BeginCancelToken(TimeSpan, SecurityToken, AsyncCallback, Object) BeginCancelToken(TimeSpan, SecurityToken, AsyncCallback, Object) BeginCancelToken(TimeSpan, SecurityToken, AsyncCallback, Object)

開始非同步作業,以便取消安全性權杖。Begins an asynchronous operation to cancel a security token.

(Inherited from SecurityTokenProvider)
BeginCancelTokenCore(TimeSpan, SecurityToken, AsyncCallback, Object) BeginCancelTokenCore(TimeSpan, SecurityToken, AsyncCallback, Object) BeginCancelTokenCore(TimeSpan, SecurityToken, AsyncCallback, Object) BeginCancelTokenCore(TimeSpan, SecurityToken, AsyncCallback, Object)

開始非同步作業,以便取消安全性權杖。Begins an asynchronous operation to cancel a security token.

(Inherited from SecurityTokenProvider)
BeginGetToken(TimeSpan, AsyncCallback, Object) BeginGetToken(TimeSpan, AsyncCallback, Object) BeginGetToken(TimeSpan, AsyncCallback, Object) BeginGetToken(TimeSpan, AsyncCallback, Object)

開始非同步作業,以便取得安全性權杖。Begins an asynchronous operation to get a security token.

(Inherited from SecurityTokenProvider)
BeginGetTokenCore(TimeSpan, AsyncCallback, Object) BeginGetTokenCore(TimeSpan, AsyncCallback, Object) BeginGetTokenCore(TimeSpan, AsyncCallback, Object) BeginGetTokenCore(TimeSpan, AsyncCallback, Object)

開始非同步作業,以便取得安全性權杖。Begins an asynchronous operation to get a security token.

(Inherited from SecurityTokenProvider)
BeginRenewToken(TimeSpan, SecurityToken, AsyncCallback, Object) BeginRenewToken(TimeSpan, SecurityToken, AsyncCallback, Object) BeginRenewToken(TimeSpan, SecurityToken, AsyncCallback, Object) BeginRenewToken(TimeSpan, SecurityToken, AsyncCallback, Object)

開始非同步作業,以便更新安全性權杖。Begins an asynchronous operation that renews a security token.

(Inherited from SecurityTokenProvider)
BeginRenewTokenCore(TimeSpan, SecurityToken, AsyncCallback, Object) BeginRenewTokenCore(TimeSpan, SecurityToken, AsyncCallback, Object) BeginRenewTokenCore(TimeSpan, SecurityToken, AsyncCallback, Object) BeginRenewTokenCore(TimeSpan, SecurityToken, AsyncCallback, Object)

開始非同步作業,以便更新安全性權杖。Begins an asynchronous operation that renews a security token.

(Inherited from SecurityTokenProvider)
CancelToken(TimeSpan, SecurityToken) CancelToken(TimeSpan, SecurityToken) CancelToken(TimeSpan, SecurityToken) CancelToken(TimeSpan, SecurityToken)

取消安全性權杖。Cancels a security token.

(Inherited from SecurityTokenProvider)
CancelTokenCore(TimeSpan, SecurityToken) CancelTokenCore(TimeSpan, SecurityToken) CancelTokenCore(TimeSpan, SecurityToken) CancelTokenCore(TimeSpan, SecurityToken)

取消安全性權杖。Cancels a security token.

(Inherited from SecurityTokenProvider)
Dispose() Dispose() Dispose() Dispose()

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

EndCancelToken(IAsyncResult) EndCancelToken(IAsyncResult) EndCancelToken(IAsyncResult) EndCancelToken(IAsyncResult)

完成非同步作業,以便取消安全性權杖。Completes an asynchronous operation to cancel a security token.

(Inherited from SecurityTokenProvider)
EndCancelTokenCore(IAsyncResult) EndCancelTokenCore(IAsyncResult) EndCancelTokenCore(IAsyncResult) EndCancelTokenCore(IAsyncResult)

完成非同步作業,以便取消安全性權杖。Completes an asynchronous operation to cancel a security token.

(Inherited from SecurityTokenProvider)
EndGetToken(IAsyncResult) EndGetToken(IAsyncResult) EndGetToken(IAsyncResult) EndGetToken(IAsyncResult)

完成非同步作業,以便取得安全性權杖。Completes an asynchronous operation to get a security token.

(Inherited from SecurityTokenProvider)
EndGetTokenCore(IAsyncResult) EndGetTokenCore(IAsyncResult) EndGetTokenCore(IAsyncResult) EndGetTokenCore(IAsyncResult)

完成非同步作業,以便取得安全性權杖。Completes an asynchronous operation to get a security token.

(Inherited from SecurityTokenProvider)
EndRenewToken(IAsyncResult) EndRenewToken(IAsyncResult) EndRenewToken(IAsyncResult) EndRenewToken(IAsyncResult)

完成非同步作業,以便更新安全性權杖。Completes an asynchronous operation to renew a security token.

(Inherited from SecurityTokenProvider)
EndRenewTokenCore(IAsyncResult) EndRenewTokenCore(IAsyncResult) EndRenewTokenCore(IAsyncResult) EndRenewTokenCore(IAsyncResult)

完成非同步作業,以便更新安全性權杖。Completes an asynchronous operation to renew the security token.

(Inherited from SecurityTokenProvider)
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)
GetToken(TimeSpan) GetToken(TimeSpan) GetToken(TimeSpan) GetToken(TimeSpan)

取得安全性權杖。Gets a security token.

(Inherited from SecurityTokenProvider)
GetTokenCore(TimeSpan) GetTokenCore(TimeSpan) GetTokenCore(TimeSpan) GetTokenCore(TimeSpan)

取得使用建構函式中所指定 X.509 憑證的安全性權杖。Gets a security token using the X.509 certificate specified in the constructor.

GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
RenewToken(TimeSpan, SecurityToken) RenewToken(TimeSpan, SecurityToken) RenewToken(TimeSpan, SecurityToken) RenewToken(TimeSpan, SecurityToken)

更新安全性權杖。Renews a security token.

(Inherited from SecurityTokenProvider)
RenewTokenCore(TimeSpan, SecurityToken) RenewTokenCore(TimeSpan, SecurityToken) RenewTokenCore(TimeSpan, SecurityToken) RenewTokenCore(TimeSpan, SecurityToken)

更新安全性權杖。Renews a security token.

(Inherited from SecurityTokenProvider)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)

適用於

另請參閱