SecurityTokenAuthenticator Classe

Definição

Autentica um token de segurança.Authenticates a security token.

public ref class SecurityTokenAuthenticator abstract
public abstract class SecurityTokenAuthenticator
type SecurityTokenAuthenticator = class
Public MustInherit Class SecurityTokenAuthenticator
Herança
SecurityTokenAuthenticator
Derivado

Comentários

A SecurityTokenAuthenticator classe e as classes que derivam dela autenticam tokens de segurança.The SecurityTokenAuthenticator class and the classes that derive from it authenticate security tokens. Normalmente, você só deriva uma classe diretamente de SecurityTokenAuthenticator quando cria um token de segurança personalizado.Typically, you would only derive a class directly from SecurityTokenAuthenticator when you create a custom security token. Se você quisesse substituir os comportamentos padrão de autenticação ou autorização para tokens de segurança internos, derive de uma das classes que derivam de SecurityTokenAuthenticator , como SamlSecurityTokenAuthenticator .If you wanted to override the default authentication or authorization behaviors for built-in security tokens, derive from one of the classes that derive from SecurityTokenAuthenticator, such as SamlSecurityTokenAuthenticator.

Quando você deriva uma classe de SecurityTokenAuthenticator , substitua os dois métodos a seguir: ValidateTokenCore e CanValidateTokenCore .When you derive a class from SecurityTokenAuthenticator, override the following two methods: ValidateTokenCore and CanValidateTokenCore. O CanValidateTokenCore método determina se esse autenticador de token de segurança pode autenticar um token de segurança específico.The CanValidateTokenCore method determines whether this security token authenticator can authenticate a specific security token. O ValidateTokenCore método autentica o token de segurança e estabelece um conjunto de políticas de autorização para autorização.The ValidateTokenCore method authenticates the security token and establishes a set of authorization policies for authorization. As políticas de autorização mapeiam as declarações encontradas no token de segurança para declarações exigidas pelo aplicativo.The authorization policies map the claims found in the security token to claims required by the application.

Construtores

SecurityTokenAuthenticator()

Inicializa uma nova instância da classe SecurityTokenAuthenticator.Initializes a new instance of the SecurityTokenAuthenticator class.

Métodos

CanValidateToken(SecurityToken)

Obtém um valor que indica se o token de segurança especificado pode ser validado pelo autenticador de token de segurança.Gets a value indicating whether the specified security token can be validated by this security token authenticator.

CanValidateTokenCore(SecurityToken)

Quando substituído em uma classe derivada, obtém um valor que indica se o token de segurança especificado pode ser validado pelo autenticador de token de segurança.When overridden in a derived class, gets a value indicating whether the specified security token can be validated by this security token authenticator.

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object.

(Herdado de Object)
GetHashCode()

Serve como a função de hash padrão.Serves as the default hash function.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object.

(Herdado de Object)
ValidateToken(SecurityToken)

Autentica o token de segurança especificado e retorna o conjunto de políticas de autorização do token de segurança.Authenticates the specified security token and returns the set of authorization policies for the security token.

ValidateTokenCore(SecurityToken)

Quando substituído em uma classe derivada, autentica o token de segurança especificado e retorna o conjunto de políticas de autorização do token de segurança.When overridden in a derived class, authenticates the specified security token and returns the set of authorization policies for the security token.

Aplica-se a

Confira também