Saml2SecurityTokenHandler.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 token data 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 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
Show: