KerberosSecurityTokenHandler.ValidateToken Method (SecurityToken)

.NET Framework (current version)
 

Validates the specified Kerberos security token.

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 security token to be validated. This must be an instance of the KerberosReceiverSecurityToken class.

Return Value

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

The identities that are contained in the token.

Exception Condition
ArgumentNullException

token is null.

ArgumentException

The specified token is not assignable as a KerberosReceiverSecurityToken.

.NET Framework
Available since 4.5
Return to top
Show: