Saml2SecurityTokenHandler.ValidateToken Method (SecurityToken)

.NET Framework (current version)

Validates the token data and returns its claims.

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

public override ReadOnlyCollection<ClaimsIdentity> ValidateToken(
	SecurityToken token


Type: System.IdentityModel.Tokens.SecurityToken

The SAML 2.0 token to be validated.

Return Value

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

The identities contained in the token.

Throws an appropriate exception if the token is not valid.

.NET Framework
Available since 4.5
Return to top