SessionSecurityTokenHandler.ValidateToken Method (SecurityToken)

.NET Framework (current version)
 

Validates the specified token and returns its claims.

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

public override ReadOnlyCollection<ClaimsIdentity> ValidateToken(
	SecurityToken token
)

Parameters

token
Type: System.IdentityModel.Tokens.SecurityToken

The token to be validated. Must be assignable from SessionSecurityToken.

Return Value

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

The identities that are contained in the token.

Exception Condition
ArgumentNullException

tokennull.

InvalidOperationException

token is not assignable from SessionSecurityToken.

Invokes the ValidateSession method to validate the token.

.NET Framework
Available since 4.5
Return to top
Show: