UserNameSecurityTokenProvider Class
Represents a security token provider that provides UserNameSecurityToken security tokens for a SOAP message sender.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
System.IdentityModel.Selectors::SecurityTokenProvider
System.IdentityModel.Selectors::UserNameSecurityTokenProvider
| Name | Description | |
|---|---|---|
![]() | UserNameSecurityTokenProvider(String^, String^) | 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(TimeSpan, SecurityToken^, AsyncCallback^, Object^) | Begins an asynchronous operation to cancel a security token.(Inherited from SecurityTokenProvider.) |
![]() | BeginCancelTokenCore(TimeSpan, SecurityToken^, AsyncCallback^, Object^) | Begins an asynchronous operation to cancel a security token.(Inherited from SecurityTokenProvider.) |
![]() | BeginGetToken(TimeSpan, AsyncCallback^, Object^) | Begins an asynchronous operation to get a security token.(Inherited from SecurityTokenProvider.) |
![]() | BeginGetTokenCore(TimeSpan, AsyncCallback^, Object^) | Begins an asynchronous operation to get a security token.(Inherited from SecurityTokenProvider.) |
![]() | BeginRenewToken(TimeSpan, SecurityToken^, AsyncCallback^, Object^) | Begins an asynchronous operation that renews a security token.(Inherited from SecurityTokenProvider.) |
![]() | BeginRenewTokenCore(TimeSpan, SecurityToken^, AsyncCallback^, Object^) | Begins an asynchronous operation that renews a security token. (Inherited from SecurityTokenProvider.) |
![]() | CancelToken(TimeSpan, SecurityToken^) | Cancels a security token.(Inherited from SecurityTokenProvider.) |
![]() | CancelTokenCore(TimeSpan, SecurityToken^) | Cancels a security token.(Inherited from SecurityTokenProvider.) |
![]() | EndCancelToken(IAsyncResult^) | Completes an asynchronous operation to cancel a security token.(Inherited from SecurityTokenProvider.) |
![]() | EndCancelTokenCore(IAsyncResult^) | Completes an asynchronous operation to cancel a security token.(Inherited from SecurityTokenProvider.) |
![]() | EndGetToken(IAsyncResult^) | Completes an asynchronous operation to get a security token.(Inherited from SecurityTokenProvider.) |
![]() | EndGetTokenCore(IAsyncResult^) | Completes an asynchronous operation to get a security token.(Inherited from SecurityTokenProvider.) |
![]() | EndRenewToken(IAsyncResult^) | Completes an asynchronous operation to renew a security token.(Inherited from SecurityTokenProvider.) |
![]() | EndRenewTokenCore(IAsyncResult^) | 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 the default hash function. (Inherited from Object.) |
![]() | GetToken(TimeSpan) | Gets a security token.(Inherited from SecurityTokenProvider.) |
![]() | GetTokenCore(TimeSpan) | Gets a security token based on the username and password specified in the constructor. (Overrides SecurityTokenProvider::GetTokenCore(TimeSpan).) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | RenewToken(TimeSpan, SecurityToken^) | Renews a security token.(Inherited from SecurityTokenProvider.) |
![]() | RenewTokenCore(TimeSpan, SecurityToken^) | 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.
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.


