UserNameSecurityTokenAuthenticator Class
Authenticates a UserNameSecurityToken security token.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
System.IdentityModel.Selectors::SecurityTokenAuthenticator
System.IdentityModel.Selectors::UserNameSecurityTokenAuthenticator
System.IdentityModel.Selectors::CustomUserNameSecurityTokenAuthenticator
System.IdentityModel.Selectors::WindowsUserNameSecurityTokenAuthenticator
| Name | Description | |
|---|---|---|
![]() | UserNameSecurityTokenAuthenticator() | Initializes a new instance of the UserNameSecurityTokenAuthenticator class. |
| Name | Description | |
|---|---|---|
![]() | CanValidateToken(SecurityToken^) | Gets a value indicating whether the specified security token can be validated by this security token authenticator. (Inherited from SecurityTokenAuthenticator.) |
![]() | CanValidateTokenCore(SecurityToken^) | Gets a value indicating whether the specified security token can be validated by this security token authenticator.(Overrides SecurityTokenAuthenticator::CanValidateTokenCore(SecurityToken^).) |
![]() | 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.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | ValidateToken(SecurityToken^) | Authenticates the specified security token and returns the set of authorization policies for the security token. (Inherited from SecurityTokenAuthenticator.) |
![]() | ValidateTokenCore(SecurityToken^) | Authenticates the specified security token and returns the set of authorization policies for the security token.(Overrides SecurityTokenAuthenticator::ValidateTokenCore(SecurityToken^).) |
![]() | ValidateUserNamePasswordCore(String^, String^) | When overridden in a derived class, authenticates the specified user name and password and returns the set of authorization policies for UserNameSecurityToken security tokens. |
Override the UserNameSecurityTokenAuthenticator class to authenticate security tokens based on a user name and password.
The Windows Communication Foundation (WCF) ships with the following classes that provide support for authenticating UserNameSecurityToken security tokens.
Type | Description |
|---|---|
Allows an application to provide a custom authentication scheme for user names and passwords. The authentication scheme is provided using a class deriving from the UserNamePasswordValidator class. | |
Authenticates the user name and password as a Windows account. |
Most custom authentication schemes can use the use the CustomUserNameSecurityTokenAuthenticator class and implement a class that derives from the UserNamePasswordValidator class. However, if additional flexibility is needed, you can derive a class from the UserNameSecurityTokenAuthenticator class and override the ValidateUserNamePasswordCore 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.

