X509SecurityTokenProvider Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents a security token provider that provides X509SecurityToken security tokens for a SOAP message sender.

Namespace:   System.IdentityModel.Selectors
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

System::Object
  System.IdentityModel.Selectors::SecurityTokenProvider
    System.IdentityModel.Selectors::X509SecurityTokenProvider

public ref class X509SecurityTokenProvider : SecurityTokenProvider, 
	IDisposable

NameDescription
System_CAPS_pubmethodX509SecurityTokenProvider(StoreLocation, StoreName, X509FindType, Object^)

Initializes a new instance of the X509SecurityTokenProvider class by getting an X.509 certificate from the specified certificate store criteria.

System_CAPS_pubmethodX509SecurityTokenProvider(X509Certificate2^)

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

NameDescription
System_CAPS_pubpropertyCertificate

Gets the X.509 certificate associated with the X509SecurityToken security token.

System_CAPS_pubpropertySupportsTokenCancellation

Gets a value that indicates whether the security token can be cancelled. (Inherited from SecurityTokenProvider.)

System_CAPS_pubpropertySupportsTokenRenewal

Gets a value that indicates whether the security token is renewable. (Inherited from SecurityTokenProvider.)

NameDescription
System_CAPS_pubmethodBeginCancelToken(TimeSpan, SecurityToken^, AsyncCallback^, Object^)

Begins an asynchronous operation to cancel a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_protmethodBeginCancelTokenCore(TimeSpan, SecurityToken^, AsyncCallback^, Object^)

Begins an asynchronous operation to cancel a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_pubmethodBeginGetToken(TimeSpan, AsyncCallback^, Object^)

Begins an asynchronous operation to get a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_protmethodBeginGetTokenCore(TimeSpan, AsyncCallback^, Object^)

Begins an asynchronous operation to get a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_pubmethodBeginRenewToken(TimeSpan, SecurityToken^, AsyncCallback^, Object^)

Begins an asynchronous operation that renews a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_protmethodBeginRenewTokenCore(TimeSpan, SecurityToken^, AsyncCallback^, Object^)

Begins an asynchronous operation that renews a security token. (Inherited from SecurityTokenProvider.)

System_CAPS_pubmethodCancelToken(TimeSpan, SecurityToken^)

Cancels a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_protmethodCancelTokenCore(TimeSpan, SecurityToken^)

Cancels a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_pubmethodDispose()

Releases all resources used by the X509SecurityTokenProvider.

System_CAPS_pubmethodEndCancelToken(IAsyncResult^)

Completes an asynchronous operation to cancel a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_protmethodEndCancelTokenCore(IAsyncResult^)

Completes an asynchronous operation to cancel a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_pubmethodEndGetToken(IAsyncResult^)

Completes an asynchronous operation to get a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_protmethodEndGetTokenCore(IAsyncResult^)

Completes an asynchronous operation to get a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_pubmethodEndRenewToken(IAsyncResult^)

Completes an asynchronous operation to renew a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_protmethodEndRenewTokenCore(IAsyncResult^)

Completes an asynchronous operation to renew the security token.(Inherited from SecurityTokenProvider.)

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetToken(TimeSpan)

Gets a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_protmethodGetTokenCore(TimeSpan)

Gets a security token using the X.509 certificate specified in the constructor.(Overrides SecurityTokenProvider::GetTokenCore(TimeSpan).)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRenewToken(TimeSpan, SecurityToken^)

Renews a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_protmethodRenewTokenCore(TimeSpan, SecurityToken^)

Renews a security token.(Inherited from SecurityTokenProvider.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: