WindowsSecurityTokenAuthenticator.CanValidateTokenCore(SecurityToken) 方法
定义
获取一个值,该值指示指定的安全令牌是否可由该安全令牌身份验证器进行验证。Gets a value indicating whether the specified security token can be validated by this security token authenticator.
protected:
override bool CanValidateTokenCore(System::IdentityModel::Tokens::SecurityToken ^ token);
protected override bool CanValidateTokenCore (System.IdentityModel.Tokens.SecurityToken token);
override this.CanValidateTokenCore : System.IdentityModel.Tokens.SecurityToken -> bool
Protected Overrides Function CanValidateTokenCore (token As SecurityToken) As Boolean
参数
- token
- SecurityToken
要验证的 SecurityToken。The SecurityToken to be validated.
返回
如果 true 为 token 安全令牌,则为 WindowsSecurityToken;否则为 false。true when token is a WindowsSecurityToken security token; otherwise, false.
注解
CanValidateTokenCore 方法不对安全令牌进行身份验证;该操作由 ValidateTokenCore 方法执行。The CanValidateTokenCore method does not authenticate the security token; that is performed by the ValidateTokenCore method.