SecurityTokenProvider Class

 

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

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


public ref class SecurityTokenProvider abstract 

NameDescription
System_CAPS_protmethodSecurityTokenProvider()

Initializes a new instance of the SecurityTokenProvider class.

NameDescription
System_CAPS_pubpropertySupportsTokenCancellation

Gets a value that indicates whether the security token can be cancelled.

System_CAPS_pubpropertySupportsTokenRenewal

Gets a value that indicates whether the security token is renewable.

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

Begins an asynchronous operation to cancel a security token.

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

Begins an asynchronous operation to cancel a security token.

System_CAPS_pubmethodBeginGetToken(TimeSpan, AsyncCallback^, Object^)

Begins an asynchronous operation to get a security token.

System_CAPS_protmethodBeginGetTokenCore(TimeSpan, AsyncCallback^, Object^)

Begins an asynchronous operation to get a security token.

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

Begins an asynchronous operation that renews a security token.

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

Begins an asynchronous operation that renews a security token.

System_CAPS_pubmethodCancelToken(TimeSpan, SecurityToken^)

Cancels a security token.

System_CAPS_protmethodCancelTokenCore(TimeSpan, SecurityToken^)

Cancels a security token.

System_CAPS_pubmethodEndCancelToken(IAsyncResult^)

Completes an asynchronous operation to cancel a security token.

System_CAPS_protmethodEndCancelTokenCore(IAsyncResult^)

Completes an asynchronous operation to cancel a security token.

System_CAPS_pubmethodEndGetToken(IAsyncResult^)

Completes an asynchronous operation to get a security token.

System_CAPS_protmethodEndGetTokenCore(IAsyncResult^)

Completes an asynchronous operation to get a security token.

System_CAPS_pubmethodEndRenewToken(IAsyncResult^)

Completes an asynchronous operation to renew a security token.

System_CAPS_protmethodEndRenewTokenCore(IAsyncResult^)

Completes an asynchronous operation to renew the security token.

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.

System_CAPS_protmethodGetTokenCore(TimeSpan)

Gets a security token.

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.

System_CAPS_protmethodRenewTokenCore(TimeSpan, SecurityToken^)

Renews a security token.

System_CAPS_pubmethodToString()

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

Use the SecurityTokenProvider class when custom security tokens are required. The role of a security token provider is to get a security token when a SOAP message is sent by a client and a security token is used to authenticate the client or to protect the SOAP message. Specifically, the GetToken method is called to get a security token. The security token provider can also be called to cancel and renew a security using the CancelToken and RenewToken methods.

Classes that derive from the SecurityTokenManager class implement the CreateSecurityTokenProvider method to determine which security token provider is required for a given security token.

The ClientCredentialsSecurityTokenManager and ServiceCredentialsSecurityTokenManager classes provide the default implementations for built-in security token types. For custom security token scenarios, you must derive a class from one of the SecurityTokenManager, ClientCredentialsSecurityTokenManager, or ServiceCredentialsSecurityTokenManager classes and provide the functionality to create the security token provider, security token authenticator, and security token serializer for the custom security token. For more information about creating a custom token, see How to: Create a Custom Token.

No code example is currently available or this language may not be supported.

.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: