EncryptedSecurityTokenHandler Classe

Definição

Um manipulador de token para tokens de segurança criptografados.A token handler for encrypted security tokens. Manipula tokens do tipo EncryptedSecurityToken.Handles tokens of type EncryptedSecurityToken.

public ref class EncryptedSecurityTokenHandler : System::IdentityModel::Tokens::SecurityTokenHandler
public class EncryptedSecurityTokenHandler : System.IdentityModel.Tokens.SecurityTokenHandler
type EncryptedSecurityTokenHandler = class
    inherit SecurityTokenHandler
Public Class EncryptedSecurityTokenHandler
Inherits SecurityTokenHandler
Herança
EncryptedSecurityTokenHandler

Comentários

Um manipulador de token que serializa e desserializa EncryptedSecurityToken objetos de <xenc:EncryptedData> elementos e EncryptedKeyIdentifierClause objetos de <xenc:EncryptedKey> elementos, conforme definido na sintaxe de criptografia XML e na especificação de processamento.A token handler that serializes and deserializes EncryptedSecurityToken objects from <xenc:EncryptedData> elements and EncryptedKeyIdentifierClause objects from <xenc:EncryptedKey> elements as defined in the XML Encryption Syntax and Processing specification.

Construtores

EncryptedSecurityTokenHandler()

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

Propriedades

CanValidateToken

Obtém um valor que indica se o manipulador dá suporte à validação de tokens de segurança.Gets a value that indicates whether the handler supports validation of security tokens.

(Herdado de SecurityTokenHandler)
CanWriteToken

Obtém um valor que indica se o manipulador fornece funcionalidade de serialização para tokens.Gets a value that indicates whether the handler provides serialization functionality for tokens.

Configuration

Obtém ou define o objeto SecurityTokenHandlerConfiguration que fornece a configuração para a instância atual.Gets or sets the SecurityTokenHandlerConfiguration object that provides configuration for the current instance.

(Herdado de SecurityTokenHandler)
ContainingCollection

Obtém a coleção de manipuladores de token que contém a instância atual.Gets the token handler collection that contains the current instance.

(Herdado de SecurityTokenHandler)
KeyInfoSerializer

Obtém ou define o SecurityTokenSerializer que será usado para serializar e desserializar os identificadores de chave do elemento <xenc:EncryptedData>.Gets or sets the SecurityTokenSerializer that will be used to serialize and deserialize key identifiers from the <xenc:EncryptedData> element.

TokenType

Obtém o tipo do token manipulado pela instância atual.Gets the type of the token handled by the current instance.

Métodos

CanReadKeyIdentifierClause(XmlReader)

Retorna um valor que indica se o elemento XML atual está apontando para um elemento <xenc:EncryptedKey> que pode ser desserializado para um SecurityKeyIdentifierClause por esta instância.Returns a value that indicates whether the current XML element is pointing to an <xenc:EncryptedKey> element that can be deserialized to a SecurityKeyIdentifierClause by this instance.

CanReadToken(String)

Retorna um valor que indica se a cadeia de caracteres especificada pode ser desserializada como um token do tipo processado por esta instância.Returns a value that indicates whether the specified string can be deserialized as a token of the type processed by this instance.

(Herdado de SecurityTokenHandler)
CanReadToken(XmlReader)

Retorna um valor que indica se o leitor está apontando para um elemento <xenc:EncryptedData>.Returns a value that indicates whether the reader is pointing to an <xenc:EncryptedData> element.

CanWriteKeyIdentifierClause(SecurityKeyIdentifierClause)

Retorna um valor que indica se a cláusula de identificador de chave especificada pode ser serializada por esta instância.Returns a value that indicates whether the specified key identifier clause can be serialized by this instance.

(Herdado de SecurityTokenHandler)
CreateSecurityTokenReference(SecurityToken, Boolean)

Quando substituído em uma classe derivada, cria a referência de token de segurança para tokens processados por essa classe.When overridden in a derived class, creates the security token reference for tokens processed by that class. Este método é geralmente chamado por um STS (serviço de token de segurança).This method is typically called by a security token service (STS).

(Herdado de SecurityTokenHandler)
CreateToken(SecurityTokenDescriptor)

Quando substituído em uma classe derivada, cria um token de segurança usando o descritor de token especificado.When overridden in a derived class, creates a security token using the specified token descriptor. Este método é chamado por um STS (serviço de token de segurança).This method is called by a security token service (STS).

(Herdado de SecurityTokenHandler)
DetectReplayedToken(SecurityToken)

Quando substituído em uma classe derivada, gera uma exceção se o token especificado é detectado como sendo reproduzido.When overridden in a derived class, throws an exception if the specified token is detected as being replayed.

(Herdado de SecurityTokenHandler)
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)
GetTokenTypeIdentifiers()

Obtém os URIs do identificador de tipo para tokens tratados pela instância atual.Gets the type identifier URIs for tokens handled by the current instance.

GetType()

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

(Herdado de Object)
LoadCustomConfiguration(XmlNodeList)

Quando substituído em uma classe derivada, carrega a configuração personalizada do XML.When overridden in a derived class, loads custom configuration from XML.

(Herdado de SecurityTokenHandler)
MemberwiseClone()

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

(Herdado de Object)
ReadKeyIdentifierClause(XmlReader)

Lê um EncryptedKeyIdentifierClause de um fluxo XML.Reads an EncryptedKeyIdentifierClause from an XML stream.

ReadToken(String)

Quando substituído em uma classe derivada, desserializa a cadeia de caracteres especificada para um token do tipo processado pela classe derivada.When overridden in a derived class, deserializes the specified string to a token of the type processed by the derived class.

(Herdado de SecurityTokenHandler)
ReadToken(XmlReader)

Lê um token de segurança criptografado.Reads an encrypted security token.

ReadToken(XmlReader, SecurityTokenResolver)

Quando substituído em uma classe derivada, desserializa o XML referenciado pelo leitor de XML especificado para um token do tipo processado pela classe derivada usando o resolvedor de token especificado.When overridden in a derived class, deserializes the XML referenced by the specified XML reader to a token of the type processed by the derived class by using the specified token resolver.

(Herdado de SecurityTokenHandler)
ToString()

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

(Herdado de Object)
TraceTokenValidationFailure(SecurityToken, String)

Rastreia o evento de falha durante a validação dos tokens de segurança quando o rastreamento está habilitado.Traces the failure event during the validation of security tokens when tracing is enabled.

(Herdado de SecurityTokenHandler)
TraceTokenValidationSuccess(SecurityToken)

Rastreia a validação bem-sucedida do evento de tokens de segurança quando o rastreamento está habilitado.Traces the successful validation of security tokens event when tracing is enabled.

(Herdado de SecurityTokenHandler)
ValidateToken(SecurityToken)

Quando substituído em uma classe derivada, valida o token de segurança especificado.When overridden in a derived class, validates the specified security token. O token deve ser do tipo processado pela classe derivada.The token must be of the type processed by the derived class.

(Herdado de SecurityTokenHandler)
WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause)

Quando substituído em uma classe derivada, serializa a cláusula de identificador de chave especificado no XML.When overridden in a derived class, serializes the specified key identifier clause to XML. A cláusula do identificador de chave deve ser do tipo com suporte na classe derivada.The key identifier clause must be of the type supported by the derived class.

(Herdado de SecurityTokenHandler)
WriteToken(SecurityToken)

Quando substituído em uma classe derivada, serializa o token de segurança especificado em uma cadeia de caracteres.When overridden in a derived class, serializes the specified security token to a string. O token deve ser do tipo processado pela classe derivada.The token must be of the type processed by the derived class.

(Herdado de SecurityTokenHandler)
WriteToken(XmlWriter, SecurityToken)

Grava um token de segurança criptografado usando o gravador de XML.Writes an encrypted security token using the XML writer.

Aplica-se a