SecurityTokenSerializer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
CanReadKeyIdentifierClause(XmlReader) |
Determines whether this serializer can read a clause in a |
CanReadKeyIdentifierClauseCore(XmlReader) |
Determines whether this serializer can read the |
CanReadKeyIdentifierCore(XmlReader) |
Determines whether this serializer can read the |
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. |