This topic has not yet been rated - Rate this topic

SecurityTokenSerializer Class

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

System.Object
  System.IdentityModel.Selectors.SecurityTokenSerializer
    System.ServiceModel.Security.WSSecurityTokenSerializer

Namespace:  System.IdentityModel.Selectors
Assembly:  System.IdentityModel (in System.IdentityModel.dll)
public abstract class SecurityTokenSerializer

The SecurityTokenSerializer type exposes the following members.

  Name Description
Protected method SecurityTokenSerializer Initializes a new instance of the SecurityTokenSerializer class.
Top
  Name Description
Public method CanReadKeyIdentifier Determines whether this serializer can read the <KeyIdentifier> element referred to by the specified XML reader.
Public method CanReadKeyIdentifierClause Determines whether this serializer can read a clause in a <KeyIdentifier> element referred to by the specified XML reader.
Protected method CanReadKeyIdentifierClauseCore Determines whether this serializer can read the <KeyIdentifier> element referred to by the specified XML reader. Called by the base class.
Protected method CanReadKeyIdentifierCore Determines whether this serializer can read the <KeyIdentifier> element referred to by the specified XML reader. Called by the base class.
Public method CanReadToken Determines whether this serializer can read the security token pointed at by the specified XML reader.
Protected method CanReadTokenCore Determines whether this serializer can read the security token pointed at by the specified XML reader. Called by the base class.
Public method CanWriteKeyIdentifier Determines whether this serializer can write the specified key identifier.
Public method CanWriteKeyIdentifierClause Determines whether this serializer can write the specified key identifier clause.
Protected method CanWriteKeyIdentifierClauseCore Determines whether this serializer can write the specified key identifier clause. Called by the base class.
Protected method CanWriteKeyIdentifierCore Determines whether this serializer can write the specified key identifier. Called by the base class.
Public method CanWriteToken Determines whether this serializer can write the specified security token to XML.
Protected method CanWriteTokenCore Determines whether this serializer can write the specified security token to XML. Called by the base class.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReadKeyIdentifier Reads the key identifier using specified XML reader.
Public method ReadKeyIdentifierClause Reads the key identifier clause using specified XML reader.
Protected method ReadKeyIdentifierClauseCore Reads the key identifier clause using specified XML reader. Called by the base class.
Protected method ReadKeyIdentifierCore Reads the key identifier clause using specified XML reader. Called by the base class.
Public method ReadToken Reads the security token pointed at by the specified XML reader.
Protected method ReadTokenCore Reads the security token pointed at by the specified XML reader. Called by the base class.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method WriteKeyIdentifier Writes the specified key identifier using the specified XML writer.
Public method WriteKeyIdentifierClause Writes the specified key identifier clause using the specified XML writer.
Protected method WriteKeyIdentifierClauseCore Writes the specified key identifier clause using the specified XML writer. Called by the base class.
Protected method WriteKeyIdentifierCore Writes the specified key identifier using the specified XML writer. Called by the base class.
Public method WriteToken Writes the specified security token using the specified XML writer.
Protected method WriteTokenCore Writes the specified security token using the specified XML writer. Called by the base class.
Top

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.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ