WindowsSecurityTokenAuthenticator.ValidateTokenCore(SecurityToken) 方法
定义
对指定的安全令牌进行身份验证,并返回该安全令牌的授权策略集。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)
参数
- token
- SecurityToken
要验证的 SecurityToken。The SecurityToken to be validated.
返回
一个类型为 ReadOnlyCollection<T> 的 IAuthorizationPolicy,它包含对此应用程序生效的授权策略集。A ReadOnlyCollection<T> of type IAuthorizationPolicy that contains the set of authorization policies in effect for this application.