SamlSecurityTokenHandler.ValidateToken Method (SecurityToken)

.NET Framework (current version)

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

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 1.1 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