SecurityTokenSerializer SecurityTokenSerializer SecurityTokenSerializer SecurityTokenSerializer Class

Definition

Represents a class that can read and write key identifiers, key identifier clauses, and security tokens.

public ref class SecurityTokenSerializer abstract
public abstract class SecurityTokenSerializer
type SecurityTokenSerializer = class
Public MustInherit Class SecurityTokenSerializer
Inheritance
SecurityTokenSerializerSecurityTokenSerializerSecurityTokenSerializerSecurityTokenSerializer
Derived

Remarks

Use the SecurityTokenSerializer class to read and write SecurityKeyIdentifier, SecurityKeyIdentifierClause, and SecurityToken classes as XML. The SecurityTokenSerializer class has methods to determine whether this class can read and write these entities and to actually read and write them. For security tokens, these methods are CanReadToken, CanWriteToken, ReadToken, and WriteToken.

Constructors

SecurityTokenSerializer() SecurityTokenSerializer() SecurityTokenSerializer() SecurityTokenSerializer()

Initializes a new instance of the SecurityTokenSerializer class.

Methods

CanReadKeyIdentifier(XmlReader) CanReadKeyIdentifier(XmlReader) CanReadKeyIdentifier(XmlReader) CanReadKeyIdentifier(XmlReader)

Determines whether this serializer can read the <KeyIdentifier> element referred to by the specified XML reader.

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

Determines whether this serializer can read a clause in a <KeyIdentifier> element referred to by the specified XML reader.

CanReadKeyIdentifierClauseCore(XmlReader) CanReadKeyIdentifierClauseCore(XmlReader) CanReadKeyIdentifierClauseCore(XmlReader) CanReadKeyIdentifierClauseCore(XmlReader)

Determines whether this serializer can read the <KeyIdentifier> element referred to by the specified XML reader. Called by the base class.

CanReadKeyIdentifierCore(XmlReader) CanReadKeyIdentifierCore(XmlReader) CanReadKeyIdentifierCore(XmlReader) CanReadKeyIdentifierCore(XmlReader)

Determines whether this serializer can read the <KeyIdentifier> element referred to by the specified XML reader. Called by the base class.

CanReadToken(XmlReader) CanReadToken(XmlReader) CanReadToken(XmlReader) CanReadToken(XmlReader)

Determines whether this serializer can read the security token pointed at by the specified XML reader.

CanReadTokenCore(XmlReader) CanReadTokenCore(XmlReader) CanReadTokenCore(XmlReader) CanReadTokenCore(XmlReader)

Determines whether this serializer can read the security token pointed at by the specified XML reader. Called by the base class.

CanWriteKeyIdentifier(SecurityKeyIdentifier) CanWriteKeyIdentifier(SecurityKeyIdentifier) CanWriteKeyIdentifier(SecurityKeyIdentifier) CanWriteKeyIdentifier(SecurityKeyIdentifier)

Determines whether this serializer can write the specified key identifier.

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

Determines whether this serializer can write the specified key identifier clause.

CanWriteKeyIdentifierClauseCore(SecurityKeyIdentifierClause) CanWriteKeyIdentifierClauseCore(SecurityKeyIdentifierClause) CanWriteKeyIdentifierClauseCore(SecurityKeyIdentifierClause) CanWriteKeyIdentifierClauseCore(SecurityKeyIdentifierClause)

Determines whether this serializer can write the specified key identifier clause. Called by the base class.

CanWriteKeyIdentifierCore(SecurityKeyIdentifier) CanWriteKeyIdentifierCore(SecurityKeyIdentifier) CanWriteKeyIdentifierCore(SecurityKeyIdentifier) CanWriteKeyIdentifierCore(SecurityKeyIdentifier)

Determines whether this serializer can write the specified key identifier. Called by the base class.

CanWriteToken(SecurityToken) CanWriteToken(SecurityToken) CanWriteToken(SecurityToken) CanWriteToken(SecurityToken)

Determines whether this serializer can write the specified security token to XML.

CanWriteTokenCore(SecurityToken) CanWriteTokenCore(SecurityToken) CanWriteTokenCore(SecurityToken) CanWriteTokenCore(SecurityToken)

Determines whether this serializer can write the specified security token to XML. Called by the base class.

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)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ReadKeyIdentifier(XmlReader) ReadKeyIdentifier(XmlReader) ReadKeyIdentifier(XmlReader) ReadKeyIdentifier(XmlReader)

Reads the key identifier using specified XML reader.

ReadKeyIdentifierClause(XmlReader) ReadKeyIdentifierClause(XmlReader) ReadKeyIdentifierClause(XmlReader) ReadKeyIdentifierClause(XmlReader)

Reads the key identifier clause using specified XML reader.

ReadKeyIdentifierClauseCore(XmlReader) ReadKeyIdentifierClauseCore(XmlReader) ReadKeyIdentifierClauseCore(XmlReader) ReadKeyIdentifierClauseCore(XmlReader)

Reads the key identifier clause using specified XML reader. Called by the base class.

ReadKeyIdentifierCore(XmlReader) ReadKeyIdentifierCore(XmlReader) ReadKeyIdentifierCore(XmlReader) ReadKeyIdentifierCore(XmlReader)

Reads the key identifier clause using specified XML reader. Called by the base class.

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

Reads the security token pointed at by the specified XML reader.

ReadTokenCore(XmlReader, SecurityTokenResolver) ReadTokenCore(XmlReader, SecurityTokenResolver) ReadTokenCore(XmlReader, SecurityTokenResolver) ReadTokenCore(XmlReader, SecurityTokenResolver)

Reads the security token pointed at by the specified XML reader. Called by the base class.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
WriteKeyIdentifier(XmlWriter, SecurityKeyIdentifier) WriteKeyIdentifier(XmlWriter, SecurityKeyIdentifier) WriteKeyIdentifier(XmlWriter, SecurityKeyIdentifier) WriteKeyIdentifier(XmlWriter, SecurityKeyIdentifier)

Writes the specified key identifier using the specified XML writer.

WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause) WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause) WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause) WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause)

Writes the specified key identifier clause using the specified XML writer.

WriteKeyIdentifierClauseCore(XmlWriter, SecurityKeyIdentifierClause) WriteKeyIdentifierClauseCore(XmlWriter, SecurityKeyIdentifierClause) WriteKeyIdentifierClauseCore(XmlWriter, SecurityKeyIdentifierClause) WriteKeyIdentifierClauseCore(XmlWriter, SecurityKeyIdentifierClause)

Writes the specified key identifier clause using the specified XML writer. Called by the base class.

WriteKeyIdentifierCore(XmlWriter, SecurityKeyIdentifier) WriteKeyIdentifierCore(XmlWriter, SecurityKeyIdentifier) WriteKeyIdentifierCore(XmlWriter, SecurityKeyIdentifier) WriteKeyIdentifierCore(XmlWriter, SecurityKeyIdentifier)

Writes the specified key identifier using the specified XML writer. Called by the base class.

WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken)

Writes the specified security token using the specified XML writer.

WriteTokenCore(XmlWriter, SecurityToken) WriteTokenCore(XmlWriter, SecurityToken) WriteTokenCore(XmlWriter, SecurityToken) WriteTokenCore(XmlWriter, SecurityToken)

Writes the specified security token using the specified XML writer. Called by the base class.

Applies to