SecurityTokenSerializer Class

SecurityTokenSerializer Class

 

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

Namespace:   System.IdentityModel.Selectors
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

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

public abstract class SecurityTokenSerializer

NameDescription
System_CAPS_protmethodSecurityTokenSerializer()

Initializes a new instance of the SecurityTokenSerializer class.

NameDescription
System_CAPS_pubmethodCanReadKeyIdentifier(XmlReader)

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

System_CAPS_pubmethodCanReadKeyIdentifierClause(XmlReader)

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

System_CAPS_protmethodCanReadKeyIdentifierClauseCore(XmlReader)

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

System_CAPS_protmethodCanReadKeyIdentifierCore(XmlReader)

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

System_CAPS_pubmethodCanReadToken(XmlReader)

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

System_CAPS_protmethodCanReadTokenCore(XmlReader)

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

System_CAPS_pubmethodCanWriteKeyIdentifier(SecurityKeyIdentifier)

Determines whether this serializer can write the specified key identifier.

System_CAPS_pubmethodCanWriteKeyIdentifierClause(SecurityKeyIdentifierClause)

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

System_CAPS_protmethodCanWriteKeyIdentifierClauseCore(SecurityKeyIdentifierClause)

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

System_CAPS_protmethodCanWriteKeyIdentifierCore(SecurityKeyIdentifier)

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

System_CAPS_pubmethodCanWriteToken(SecurityToken)

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

System_CAPS_protmethodCanWriteTokenCore(SecurityToken)

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

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodReadKeyIdentifier(XmlReader)

Reads the key identifier using specified XML reader.

System_CAPS_pubmethodReadKeyIdentifierClause(XmlReader)

Reads the key identifier clause using specified XML reader.

System_CAPS_protmethodReadKeyIdentifierClauseCore(XmlReader)

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

System_CAPS_protmethodReadKeyIdentifierCore(XmlReader)

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

System_CAPS_pubmethodReadToken(XmlReader, SecurityTokenResolver)

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

System_CAPS_protmethodReadTokenCore(XmlReader, SecurityTokenResolver)

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

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodWriteKeyIdentifier(XmlWriter, SecurityKeyIdentifier)

Writes the specified key identifier using the specified XML writer.

System_CAPS_pubmethodWriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause)

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

System_CAPS_protmethodWriteKeyIdentifierClauseCore(XmlWriter, SecurityKeyIdentifierClause)

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

System_CAPS_protmethodWriteKeyIdentifierCore(XmlWriter, SecurityKeyIdentifier)

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

System_CAPS_pubmethodWriteToken(XmlWriter, SecurityToken)

Writes the specified security token using the specified XML writer.

System_CAPS_protmethodWriteTokenCore(XmlWriter, SecurityToken)

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.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft