Share via


X509SecurityTokenAuthenticator.ValidateTokenCore(SecurityToken) 메서드

정의

지정된 보안 토큰을 인증하고 보안 토큰의 권한 부여 정책 집합을 반환합니다.

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)

매개 변수

token
SecurityToken

유효성을 검사할 SecurityToken입니다.

반환

이 애플리케이션에 적용되는 권한 부여 정책의 집합을 포함하는 ReadOnlyCollection<T> 형식의 IAuthorizationPolicy입니다.

설명

ValidateTokenCore 메서드를 재정의할 때 다음과 같은 지침을 따릅니다.

이 메서드가 반환 될 때 null, Windows Communication Foundation throw를 SecurityTokenValidationException 예외입니다.

ValidateTokenCore 메서드는 생성자에 지정된 유효성 검사 메서드의 Validate(X509Certificate2) 메서드를 호출하여 token 매개 변수를 인증합니다.

적용 대상