This topic has not yet been rated - Rate this topic

X509SecurityTokenProvider Class

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

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

Namespace:  System.IdentityModel.Selectors
Assembly:  System.IdentityModel (in System.IdentityModel.dll)
public class X509SecurityTokenProvider : SecurityTokenProvider, 
	IDisposable

The X509SecurityTokenProvider type exposes the following members.

  Name Description
Public method X509SecurityTokenProvider(X509Certificate2) Initializes a new instance of the X509SecurityTokenProvider class using the specified X.509 certificate.
Public method 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.
Top
  Name Description
Public property Certificate Gets the X.509 certificate associated with the X509SecurityToken security token.
Public property SupportsTokenCancellation Gets a value that indicates whether the security token can be cancelled. (Inherited from SecurityTokenProvider.)
Public property SupportsTokenRenewal Gets a value that indicates whether the security token is renewable. (Inherited from SecurityTokenProvider.)
Top
  Name Description
Public method BeginCancelToken Begins an asynchronous operation to cancel a security token. (Inherited from SecurityTokenProvider.)
Protected method BeginCancelTokenCore Begins an asynchronous operation to cancel a security token. (Inherited from SecurityTokenProvider.)
Public method BeginGetToken Begins an asynchronous operation to get a security token. (Inherited from SecurityTokenProvider.)
Protected method BeginGetTokenCore Begins an asynchronous operation to get a security token. (Inherited from SecurityTokenProvider.)
Public method BeginRenewToken Begins an asynchronous operation that renews a security token. (Inherited from SecurityTokenProvider.)
Protected method BeginRenewTokenCore Begins an asynchronous operation that renews a security token. (Inherited from SecurityTokenProvider.)
Public method CancelToken Cancels a security token. (Inherited from SecurityTokenProvider.)
Protected method CancelTokenCore Cancels a security token. (Inherited from SecurityTokenProvider.)
Public method Dispose Releases all resources used by the X509SecurityTokenProvider.
Public method EndCancelToken Completes an asynchronous operation to cancel a security token. (Inherited from SecurityTokenProvider.)
Protected method EndCancelTokenCore Completes an asynchronous operation to cancel a security token. (Inherited from SecurityTokenProvider.)
Public method EndGetToken Completes an asynchronous operation to get a security token. (Inherited from SecurityTokenProvider.)
Protected method EndGetTokenCore Completes an asynchronous operation to get a security token. (Inherited from SecurityTokenProvider.)
Public method EndRenewToken Completes an asynchronous operation to renew a security token. (Inherited from SecurityTokenProvider.)
Protected method EndRenewTokenCore Completes an asynchronous operation to renew the security token. (Inherited from SecurityTokenProvider.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetToken Gets a security token. (Inherited from SecurityTokenProvider.)
Protected method GetTokenCore Gets a security token using the X.509 certificate specified in the constructor. (Overrides SecurityTokenProvider.GetTokenCore(TimeSpan).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RenewToken Renews a security token. (Inherited from SecurityTokenProvider.)
Protected method RenewTokenCore Renews a security token. (Inherited from SecurityTokenProvider.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

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

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ