SessionAuthenticationModule.ValidateSessionToken(SessionSecurityToken) SessionAuthenticationModule.ValidateSessionToken(SessionSecurityToken) SessionAuthenticationModule.ValidateSessionToken(SessionSecurityToken) Method

Definition

Validates the specified SessionSecurityToken and returns its identities.

protected:
 System::Collections::ObjectModel::ReadOnlyCollection<System::Security::Claims::ClaimsIdentity ^> ^ ValidateSessionToken(System::IdentityModel::Tokens::SessionSecurityToken ^ sessionSecurityToken);
protected System.Collections.ObjectModel.ReadOnlyCollection<System.Security.Claims.ClaimsIdentity> ValidateSessionToken (System.IdentityModel.Tokens.SessionSecurityToken sessionSecurityToken);
member this.ValidateSessionToken : System.IdentityModel.Tokens.SessionSecurityToken -> System.Collections.ObjectModel.ReadOnlyCollection<System.Security.Claims.ClaimsIdentity>

Parameters

sessionSecurityToken
SessionSecurityToken SessionSecurityToken SessionSecurityToken

The token to validate.

Returns

The collection of identities that are contained in the token.

Exceptions

The token start time is not yet valid.

There is not a valid session token handler configured. (There is no SessionSecurityTokenHandler configured in the SecurityTokenHandlers property.)

Remarks

This method is called from the AuthenticateSessionSecurityToken method. It invokes the SessionSecurityTokenHandler.ValidateToken method of the configured session token handler to validate the token and extract its identities.

Applies to