編集

次の方法で共有


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

Initializes a new instance of the SecurityTokenSerializer class.

Methods

CanReadKeyIdentifier(XmlReader)

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

CanReadKeyIdentifierClause(XmlReader)

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

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)

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

CanReadToken(XmlReader)

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

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)

Determines whether this serializer can write the specified key identifier.

CanWriteKeyIdentifierClause(SecurityKeyIdentifierClause)

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

CanWriteKeyIdentifierClauseCore(SecurityKeyIdentifierClause)

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

CanWriteKeyIdentifierCore(SecurityKeyIdentifier)

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

CanWriteToken(SecurityToken)

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

CanWriteTokenCore(SecurityToken)

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

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ReadKeyIdentifier(XmlReader)

Reads the key identifier using specified XML reader.

ReadKeyIdentifierClause(XmlReader)

Reads the key identifier clause using specified XML reader.

ReadKeyIdentifierClauseCore(XmlReader)

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

ReadKeyIdentifierCore(XmlReader)

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

ReadToken(XmlReader, SecurityTokenResolver)

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

ReadTokenCore(XmlReader, SecurityTokenResolver)

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

ToString()

Returns a string that represents the current object.

(Inherited from Object)
WriteKeyIdentifier(XmlWriter, SecurityKeyIdentifier)

Writes the specified key identifier using the specified XML writer.

WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause)

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

WriteKeyIdentifierClauseCore(XmlWriter, SecurityKeyIdentifierClause)

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

WriteKeyIdentifierCore(XmlWriter, SecurityKeyIdentifier)

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

WriteToken(XmlWriter, SecurityToken)

Writes the specified security token using the specified XML writer.

WriteTokenCore(XmlWriter, SecurityToken)

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

Applies to