X509SecurityTokenProvider X509SecurityTokenProvider X509SecurityTokenProvider X509SecurityTokenProvider Class

Definition

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
Inheritance
X509SecurityTokenProviderX509SecurityTokenProviderX509SecurityTokenProviderX509SecurityTokenProvider
Implements

Remarks

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. 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. When the security token required is an X509SecurityToken security token, the GetToken method calls the GetTokenCore method.

Constructors

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

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)

Initializes a new instance of the X509SecurityTokenProvider class using the specified X.509 certificate.

Properties

Certificate Certificate Certificate Certificate

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)

Methods

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()

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)

Gets a security token using the X.509 certificate specified in the constructor.

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

Gets the Type of the current instance.

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

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)

Applies to

See also