CustomUserNameSecurityTokenAuthenticator Class
Authenticates a UserNameSecurityToken security token using a custom authentication scheme.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
System.IdentityModel.Selectors::SecurityTokenAuthenticator
System.IdentityModel.Selectors::UserNameSecurityTokenAuthenticator
System.IdentityModel.Selectors::CustomUserNameSecurityTokenAuthenticator
| Name | Description | |
|---|---|---|
![]() | CustomUserNameSecurityTokenAuthenticator(UserNamePasswordValidator^) | Initializes a new instance of the CustomUserNameSecurityTokenAuthenticator class using the specified validator. |
| 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.(Inherited from UserNameSecurityTokenAuthenticator.) |
![]() | 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.(Inherited from UserNameSecurityTokenAuthenticator.) |
![]() | ValidateUserNamePasswordCore(String^, String^) | Authenticates the specified user name and password and returns the set of authorization policies for UserNameSecurityToken security tokens.(Overrides UserNameSecurityTokenAuthenticator::ValidateUserNamePasswordCore(String^, String^).) |
Override the CustomUserNameSecurityTokenAuthenticator class when the Windows authentication provided by the WindowsUserNameSecurityTokenAuthenticator class isn't sufficient. The WindowsUserNameSecurityTokenAuthenticator class authenticates the user name and password in a UserNameSecurityToken security token as a Windows account.
To provide a custom authentication scheme, derive a class from the UserNamePasswordValidator class, implement the authentication scheme, and then pass that class to the constructor for the CustomUserNameSecurityTokenAuthenticator class.
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.

