UserNameSecurityTokenProvider Class
Represents a security token provider that provides UserNameSecurityToken security tokens for a SOAP message sender.
System.IdentityModel.Selectors::SecurityTokenProvider
System.IdentityModel.Selectors::UserNameSecurityTokenProvider
Assembly: System.IdentityModel (in System.IdentityModel.dll)
The UserNameSecurityTokenProvider type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | UserNameSecurityTokenProvider | Initializes a new instance of the UserNameSecurityTokenProvider class using the specified username and password. |
| Name | Description | |
|---|---|---|
![]() | SupportsTokenCancellation | Gets a value that indicates whether the security token can be cancelled. (Inherited from SecurityTokenProvider.) |
![]() | SupportsTokenRenewal | Gets a value that indicates whether the security token is renewable. (Inherited from SecurityTokenProvider.) |
| Name | Description | |
|---|---|---|
![]() | BeginCancelToken | Begins an asynchronous operation to cancel a security token. (Inherited from SecurityTokenProvider.) |
![]() | BeginCancelTokenCore | Begins an asynchronous operation to cancel a security token. (Inherited from SecurityTokenProvider.) |
![]() | BeginGetToken | Begins an asynchronous operation to get a security token. (Inherited from SecurityTokenProvider.) |
![]() | BeginGetTokenCore | Begins an asynchronous operation to get a security token. (Inherited from SecurityTokenProvider.) |
![]() | BeginRenewToken | Begins an asynchronous operation that renews a security token. (Inherited from SecurityTokenProvider.) |
![]() | BeginRenewTokenCore | Begins an asynchronous operation that renews a security token. (Inherited from SecurityTokenProvider.) |
![]() | CancelToken | Cancels a security token. (Inherited from SecurityTokenProvider.) |
![]() | CancelTokenCore | Cancels a security token. (Inherited from SecurityTokenProvider.) |
![]() | EndCancelToken | Completes an asynchronous operation to cancel a security token. (Inherited from SecurityTokenProvider.) |
![]() | EndCancelTokenCore | Completes an asynchronous operation to cancel a security token. (Inherited from SecurityTokenProvider.) |
![]() | EndGetToken | Completes an asynchronous operation to get a security token. (Inherited from SecurityTokenProvider.) |
![]() | EndGetTokenCore | Completes an asynchronous operation to get a security token. (Inherited from SecurityTokenProvider.) |
![]() | EndRenewToken | Completes an asynchronous operation to renew a security token. (Inherited from SecurityTokenProvider.) |
![]() | EndRenewTokenCore | Completes an asynchronous operation to renew the security token. (Inherited from SecurityTokenProvider.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetToken | Gets a security token. (Inherited from SecurityTokenProvider.) |
![]() | GetTokenCore | Gets a security token based on the username and password specified in the constructor. (Overrides SecurityTokenProvider::GetTokenCore(TimeSpan).) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | RenewToken | Renews a security token. (Inherited from SecurityTokenProvider.) |
![]() | RenewTokenCore | Renews a security token. (Inherited from SecurityTokenProvider.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
In most instances the UserNameSecurityTokenProvider class doesn't need to be called directly, as it is called when a client sends a SOAP message that requires a UserNameSecurityToken security token. Specifically, a client specifies the type of security token needed using the ClientCredentials class and the ClientCredentials class calls the GetToken method to get a security token. When the security token needed is a UserNameSecurityToken security token, the GetToken method calls the GetTokenCore method.
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.
