SecurityTokenSerializer Class
Represents a class that can read and write key identifiers, key identifier clauses, and security tokens.
System.IdentityModel.Selectors::SecurityTokenSerializer
System.ServiceModel.Security::WSSecurityTokenSerializer
Assembly: System.IdentityModel (in System.IdentityModel.dll)
The SecurityTokenSerializer type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | SecurityTokenSerializer | Initializes a new instance of the SecurityTokenSerializer class. |
| Name | Description | |
|---|---|---|
![]() | CanReadKeyIdentifier | Determines whether this serializer can read the <KeyIdentifier> element referred to by the specified XML reader. |
![]() | CanReadKeyIdentifierClause | Determines whether this serializer can read a clause in a <KeyIdentifier> element referred to by the specified XML reader. |
![]() | CanReadKeyIdentifierClauseCore | Determines whether this serializer can read the <KeyIdentifier> element referred to by the specified XML reader. Called by the base class. |
![]() | CanReadKeyIdentifierCore | Determines whether this serializer can read the <KeyIdentifier> element referred to by the specified XML reader. Called by the base class. |
![]() | CanReadToken | Determines whether this serializer can read the security token pointed at by the specified XML reader. |
![]() | CanReadTokenCore | Determines whether this serializer can read the security token pointed at by the specified XML reader. Called by the base class. |
![]() | CanWriteKeyIdentifier | Determines whether this serializer can write the specified key identifier. |
![]() | CanWriteKeyIdentifierClause | Determines whether this serializer can write the specified key identifier clause. |
![]() | CanWriteKeyIdentifierClauseCore | Determines whether this serializer can write the specified key identifier clause. Called by the base class. |
![]() | CanWriteKeyIdentifierCore | Determines whether this serializer can write the specified key identifier. Called by the base class. |
![]() | CanWriteToken | Determines whether this serializer can write the specified security token to XML. |
![]() | CanWriteTokenCore | 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.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (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 | Reads the key identifier using specified XML reader. |
![]() | ReadKeyIdentifierClause | Reads the key identifier clause using specified XML reader. |
![]() | ReadKeyIdentifierClauseCore | Reads the key identifier clause using specified XML reader. Called by the base class. |
![]() | ReadKeyIdentifierCore | Reads the key identifier clause using specified XML reader. Called by the base class. |
![]() | ReadToken | Reads the security token pointed at by the specified XML reader. |
![]() | ReadTokenCore | 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 | Writes the specified key identifier using the specified XML writer. |
![]() | WriteKeyIdentifierClause | Writes the specified key identifier clause using the specified XML writer. |
![]() | WriteKeyIdentifierClauseCore | Writes the specified key identifier clause using the specified XML writer. Called by the base class. |
![]() | WriteKeyIdentifierCore | Writes the specified key identifier using the specified XML writer. Called by the base class. |
![]() | WriteToken | Writes the specified security token using the specified XML writer. |
![]() | WriteTokenCore | Writes the specified security token using the specified XML writer. Called by the base class. |
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
