MembershipUserNameSecurityTokenHandler.ValidateToken Method (SecurityToken)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Validates the specified security token by using the configured MembershipProvider.

Namespace:   System.IdentityModel.Services.Tokens
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public override ReadOnlyCollection<ClaimsIdentity> ValidateToken(
	SecurityToken token
)

Parameters

token
Type: System.IdentityModel.Tokens.SecurityToken

The security token to be validated.

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<ClaimsIdentity>

The identities that are contained in the token.

Exception Condition
ArgumentNullException

token is null.

ArgumentException

token is not an instance of UserNameSecurityToken.

SecurityTokenValidationException

token failed validation with the configured MembershipProvider.

The configured membership provider is referenced through the MembershipProvider property.

.NET Framework
Available since 4.5
Return to top
Show: