Editare

Partajați prin


UserNameSecurityTokenAuthenticator.ValidateTokenCore(SecurityToken) Method

Definition

Authenticates the specified security token and returns the set of authorization policies for the security token.

protected:
 override System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ ValidateTokenCore(System::IdentityModel::Tokens::SecurityToken ^ token);
protected override System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> ValidateTokenCore (System.IdentityModel.Tokens.SecurityToken token);
override this.ValidateTokenCore : System.IdentityModel.Tokens.SecurityToken -> System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy>
Protected Overrides Function ValidateTokenCore (token As SecurityToken) As ReadOnlyCollection(Of IAuthorizationPolicy)

Parameters

token
SecurityToken

The SecurityToken to be validated.

Returns

A ReadOnlyCollection<T> of type IAuthorizationPolicy that contains the set of authorization policies in effect for this application.

Remarks

The ValidateTokenCore method calls the ValidateUserNamePasswordCore method to authenticate the token parameter using its user name and password.

Applies to