Share via


SecurityTokenSerializerAdapter Constructor (SecurityTokenHandlerCollection, SecurityVersion, TrustVersion, SecureConversationVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable)

[Starting with the .NET Framework 4.5, Windows Identity Foundation (WIF) has been fully integrated into the .NET Framework. The version of WIF addressed by this topic, WIF 3.5, is deprecated and should only be used when developing against the .NET Framework 3.5 SP1 or the .NET Framework 4. For more information about WIF in the .NET Framework 4.5, also known as WIF 4.5, see the Windows Identity Foundation documentation in the .NET Framework 4.5 Development Guide.]

Initializes an instance of SecurityTokenSerializerAdapter

Namespace: Microsoft.IdentityModel.Tokens
Assembly: Microsoft.IdentityModel (in Microsoft.IdentityModel.dll)

Usage

'Usage
Dim securityTokenHandlerCollection As SecurityTokenHandlerCollection
Dim securityVersion As SecurityVersion
Dim trustVersion As TrustVersion
Dim secureConversationVersion As SecureConversationVersion
Dim emitBspAttributes As Boolean
Dim samlSerializer As SamlSerializer
Dim stateEncoder As SecurityStateEncoder
Dim knownTypes As IEnumerable(Of Type)

Dim instance As New SecurityTokenSerializerAdapter(securityTokenHandlerCollection, securityVersion, trustVersion, secureConversationVersion, emitBspAttributes, samlSerializer, stateEncoder, knownTypes)

Syntax

'Declaration
Public Sub New ( _
    securityTokenHandlerCollection As SecurityTokenHandlerCollection, _
    securityVersion As SecurityVersion, _
    trustVersion As TrustVersion, _
    secureConversationVersion As SecureConversationVersion, _
    emitBspAttributes As Boolean, _
    samlSerializer As SamlSerializer, _
    stateEncoder As SecurityStateEncoder, _
    knownTypes As IEnumerable(Of Type) _
)
public SecurityTokenSerializerAdapter (
    SecurityTokenHandlerCollection securityTokenHandlerCollection,
    SecurityVersion securityVersion,
    TrustVersion trustVersion,
    SecureConversationVersion secureConversationVersion,
    bool emitBspAttributes,
    SamlSerializer samlSerializer,
    SecurityStateEncoder stateEncoder,
    IEnumerable<Type> knownTypes
)
public:
SecurityTokenSerializerAdapter (
    SecurityTokenHandlerCollection^ securityTokenHandlerCollection, 
    SecurityVersion^ securityVersion, 
    TrustVersion^ trustVersion, 
    SecureConversationVersion^ secureConversationVersion, 
    bool emitBspAttributes, 
    SamlSerializer^ samlSerializer, 
    SecurityStateEncoder^ stateEncoder, 
    IEnumerable<Type^>^ knownTypes
)
public SecurityTokenSerializerAdapter (
    SecurityTokenHandlerCollection securityTokenHandlerCollection, 
    SecurityVersion securityVersion, 
    TrustVersion trustVersion, 
    SecureConversationVersion secureConversationVersion, 
    boolean emitBspAttributes, 
    SamlSerializer samlSerializer, 
    SecurityStateEncoder stateEncoder, 
    IEnumerable<Type> knownTypes
)
public function SecurityTokenSerializerAdapter (
    securityTokenHandlerCollection : SecurityTokenHandlerCollection, 
    securityVersion : SecurityVersion, 
    trustVersion : TrustVersion, 
    secureConversationVersion : SecureConversationVersion, 
    emitBspAttributes : boolean, 
    samlSerializer : SamlSerializer, 
    stateEncoder : SecurityStateEncoder, 
    knownTypes : IEnumerable<Type>
)

Parameters

  • securityVersion
    The SecurityVersion of the base WSSecurityTokenSerializer.
  • trustVersion
    The TrustVersion of the serializer uses.
  • secureConversationVersion
    The SecureConversationVersion of the serializer.
  • emitBspAttributes
    Flag that determines if the serailization should be BSP compliant.
  • samlSerializer
    Serializer for SAML 1.1 tokens.
  • stateEncoder
    SecurityStateEncoder used for resolving SCT.
  • knownTypes
    The collection of known claim types.

Platforms

Target Platforms

Windows 7, Windows Server 2008 R2, Windows Vista SP2, Windows Server 2008 SP2, Windows Server 2003 SP2 (32-bit or 64-bit)

See Also

Reference

SecurityTokenSerializerAdapter Class
SecurityTokenSerializerAdapter Members
Microsoft.IdentityModel.Tokens Namespace

Copyright © 2008 by Microsoft Corporation. All rights reserved.