EncryptedSecurityTokenHandler EncryptedSecurityTokenHandler EncryptedSecurityTokenHandler EncryptedSecurityTokenHandler Class

Definition

A token handler for encrypted security tokens. 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
Inheritance
EncryptedSecurityTokenHandlerEncryptedSecurityTokenHandlerEncryptedSecurityTokenHandlerEncryptedSecurityTokenHandler

Remarks

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.

Constructors

EncryptedSecurityTokenHandler() EncryptedSecurityTokenHandler() EncryptedSecurityTokenHandler() EncryptedSecurityTokenHandler()

Initializes a new instance of the EncryptedSecurityTokenHandler class.

Properties

CanValidateToken CanValidateToken CanValidateToken CanValidateToken

Gets a value that indicates whether the handler supports validation of security tokens.

(Inherited from SecurityTokenHandler)
CanWriteToken CanWriteToken CanWriteToken CanWriteToken

Gets a value that indicates whether the handler provides serialization functionality for tokens.

Configuration Configuration Configuration Configuration

Gets or sets the SecurityTokenHandlerConfiguration object that provides configuration for the current instance.

(Inherited from SecurityTokenHandler)
ContainingCollection ContainingCollection ContainingCollection ContainingCollection

Gets the token handler collection that contains the current instance.

(Inherited from SecurityTokenHandler)
KeyInfoSerializer KeyInfoSerializer KeyInfoSerializer KeyInfoSerializer

Gets or sets the SecurityTokenSerializer that will be used to serialize and deserialize key identifiers from the <xenc:EncryptedData> element.

TokenType TokenType TokenType TokenType

Gets the type of the token handled by the current instance.

Methods

CanReadKeyIdentifierClause(XmlReader) CanReadKeyIdentifierClause(XmlReader) CanReadKeyIdentifierClause(XmlReader) CanReadKeyIdentifierClause(XmlReader)

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) CanReadToken(String) CanReadToken(String) CanReadToken(String)

Returns a value that indicates whether the specified string can be deserialized as a token of the type processed by this instance.

(Inherited from SecurityTokenHandler)
CanReadToken(XmlReader) CanReadToken(XmlReader) CanReadToken(XmlReader) CanReadToken(XmlReader)

Returns a value that indicates whether the reader is pointing to an <xenc:EncryptedData> element.

CanWriteKeyIdentifierClause(SecurityKeyIdentifierClause) CanWriteKeyIdentifierClause(SecurityKeyIdentifierClause) CanWriteKeyIdentifierClause(SecurityKeyIdentifierClause) CanWriteKeyIdentifierClause(SecurityKeyIdentifierClause)

Returns a value that indicates whether the specified key identifier clause can be serialized by this instance.

(Inherited from SecurityTokenHandler)
CreateSecurityTokenReference(SecurityToken, Boolean) CreateSecurityTokenReference(SecurityToken, Boolean) CreateSecurityTokenReference(SecurityToken, Boolean) CreateSecurityTokenReference(SecurityToken, Boolean)

When overridden in a derived class, creates the security token reference for tokens processed by that class. This method is typically called by a security token service (STS).

(Inherited from SecurityTokenHandler)
CreateToken(SecurityTokenDescriptor) CreateToken(SecurityTokenDescriptor) CreateToken(SecurityTokenDescriptor) CreateToken(SecurityTokenDescriptor)

When overridden in a derived class, creates a security token using the specified token descriptor. This method is called by a security token service (STS).

(Inherited from SecurityTokenHandler)
DetectReplayedToken(SecurityToken) DetectReplayedToken(SecurityToken) DetectReplayedToken(SecurityToken) DetectReplayedToken(SecurityToken)

When overridden in a derived class, throws an exception if the specified token is detected as being replayed.

(Inherited from SecurityTokenHandler)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetTokenTypeIdentifiers() GetTokenTypeIdentifiers() GetTokenTypeIdentifiers() GetTokenTypeIdentifiers()

Gets the type identifier URIs for tokens handled by the current instance.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
LoadCustomConfiguration(XmlNodeList) LoadCustomConfiguration(XmlNodeList) LoadCustomConfiguration(XmlNodeList) LoadCustomConfiguration(XmlNodeList)

When overridden in a derived class, loads custom configuration from XML.

(Inherited from SecurityTokenHandler)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ReadKeyIdentifierClause(XmlReader) ReadKeyIdentifierClause(XmlReader) ReadKeyIdentifierClause(XmlReader) ReadKeyIdentifierClause(XmlReader)

Reads an EncryptedKeyIdentifierClause from an XML stream.

ReadToken(String) ReadToken(String) ReadToken(String) ReadToken(String)

When overridden in a derived class, deserializes the specified string to a token of the type processed by the derived class.

(Inherited from SecurityTokenHandler)
ReadToken(XmlReader) ReadToken(XmlReader) ReadToken(XmlReader) ReadToken(XmlReader)

Reads an encrypted security token.

ReadToken(XmlReader, SecurityTokenResolver) ReadToken(XmlReader, SecurityTokenResolver) ReadToken(XmlReader, SecurityTokenResolver) ReadToken(XmlReader, SecurityTokenResolver)

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.

(Inherited from SecurityTokenHandler)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TraceTokenValidationFailure(SecurityToken, String) TraceTokenValidationFailure(SecurityToken, String) TraceTokenValidationFailure(SecurityToken, String) TraceTokenValidationFailure(SecurityToken, String)

Traces the failure event during the validation of security tokens when tracing is enabled.

(Inherited from SecurityTokenHandler)
TraceTokenValidationSuccess(SecurityToken) TraceTokenValidationSuccess(SecurityToken) TraceTokenValidationSuccess(SecurityToken) TraceTokenValidationSuccess(SecurityToken)

Traces the successful validation of security tokens event when tracing is enabled.

(Inherited from SecurityTokenHandler)
ValidateToken(SecurityToken) ValidateToken(SecurityToken) ValidateToken(SecurityToken) ValidateToken(SecurityToken)

When overridden in a derived class, validates the specified security token. The token must be of the type processed by the derived class.

(Inherited from SecurityTokenHandler)
WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause) WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause) WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause) WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause)

When overridden in a derived class, serializes the specified key identifier clause to XML. The key identifier clause must be of the type supported by the derived class.

(Inherited from SecurityTokenHandler)
WriteToken(SecurityToken) WriteToken(SecurityToken) WriteToken(SecurityToken) WriteToken(SecurityToken)

When overridden in a derived class, serializes the specified security token to a string. The token must be of the type processed by the derived class.

(Inherited from SecurityTokenHandler)
WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken)

Writes an encrypted security token using the XML writer.

Applies to