WindowsUserNameSecurityTokenHandler.ValidateToken(SecurityToken) Método
Definição
Valida o token especificado e retorna suas declarações.Validates the specified token and returns its claims.
public:
override System::Collections::ObjectModel::ReadOnlyCollection<System::Security::Claims::ClaimsIdentity ^> ^ ValidateToken(System::IdentityModel::Tokens::SecurityToken ^ token);
public override System.Collections.ObjectModel.ReadOnlyCollection<System.Security.Claims.ClaimsIdentity> ValidateToken (System.IdentityModel.Tokens.SecurityToken token);
override this.ValidateToken : System.IdentityModel.Tokens.SecurityToken -> System.Collections.ObjectModel.ReadOnlyCollection<System.Security.Claims.ClaimsIdentity>
Public Overrides Function ValidateToken (token As SecurityToken) As ReadOnlyCollection(Of ClaimsIdentity)
Parâmetros
- token
- SecurityToken
O token a ser validado.The token to validate. Uma instância de UserNameSecurityToken.An instance of UserNameSecurityToken.
Retornos
As identidades que estão contidas no token.The identities that are contained in the token.
Exceções
token é null.token is null.
token não é atribuível de UserNameSecurityToken.token is not assignable from UserNameSecurityToken.
- ou --or-
A propriedade UserName do token especificado não está no formato usuário\domínio.The UserName property of the specified token is not of the form user\domain.
A propriedade Configuration é null.The Configuration property is null.
Falha de LogonUser usando o token especificado.LogonUser using the specified token failed.