Upravit

Sdílet prostřednictvím


X509SecurityTokenAuthenticator.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

When the ValidateTokenCore method is overridden, follow these guidelines:

When this method returns null, Windows Communication Foundation throws a SecurityTokenValidationException exception.

The ValidateTokenCore method calls the Validate(X509Certificate2) method of the validation method specified in the constructor to authenticate the token parameter.

Applies to