Partager via


SerializableTokenWrapper Generic Class

Represents a wrapper class for serializing a SecurityToken.

Namespace: Microsoft.Web.Services3.Security
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Public Class SomeType1
    Inherits SecurityToken
End Class
Dim serializableTokenWrapper1 As New SerializableTokenWrapper(Of SomeType1)()

Syntax

'Declaration
Public Class SerializableTokenWrapper(Of TSecurityToken As SecurityToken)
    Implements IXmlSerializable
public class SerializableTokenWrapper<TSecurityToken> : IXmlSerializable
    where TSecurityToken : SecurityToken
generic<typename TSecurityToken>
public  where TSecurityToken : SecurityToken
ref class SerializableTokenWrapper : IXmlSerializable
public class SerializableTokenWrapper<TSecurityToken> implements IXmlSerializable
    where TSecurityToken extends SecurityToken
JScript does not support Generics.

Remarks

This class can be used to serialize either a built-in SecurityToken or a custom security token that inherits from SecurityToken.

This class is used to store a SecurityToken in a StateManager object. The most common use of this class is to automatically store a SecurityContextToken in the SessionState of the proxy. This SecurityContextToken is put in a SecureConversationCorrelationState which is a SerializableTokenWrapper. The intent is to enable the state from the SessionState to be easily serialized and deserialized.

Inheritance Hierarchy

System.Object
  Microsoft.Web.Services3.Security.SerializableTokenWrapper
     Derived Classes

Thread Safety

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

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

SerializableTokenWrapper Members
Microsoft.Web.Services3.Security Namespace