Modifier

Partager via


WSSecurityTokenSerializer Constructors

Definition

Initializes a new instance of the WSSecurityTokenSerializer class.

Overloads

WSSecurityTokenSerializer()

Initializes a new instance of the WSSecurityTokenSerializer class.

WSSecurityTokenSerializer(Boolean)

Initializes a new instance of the WSSecurityTokenSerializer class.

WSSecurityTokenSerializer(SecurityVersion)

Initializes a new instance of the WSSecurityTokenSerializer class.

WSSecurityTokenSerializer(SecurityVersion, Boolean)

Initializes a new instance of the WSSecurityTokenSerializer class.

WSSecurityTokenSerializer(SecurityVersion, Boolean, SamlSerializer)

Initializes a new instance of the WSSecurityTokenSerializer class.

WSSecurityTokenSerializer(SecurityVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable<Type>)

Initializes a new instance of the WSSecurityTokenSerializer class.

WSSecurityTokenSerializer(SecurityVersion, TrustVersion, SecureConversationVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable<Type>)

Initializes a new instance of the WSSecurityTokenSerializer class.

WSSecurityTokenSerializer(SecurityVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable<Type>, Int32, Int32, Int32)

Initializes a new instance of the WSSecurityTokenSerializer class.

WSSecurityTokenSerializer(SecurityVersion, TrustVersion, SecureConversationVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable<Type>, Int32, Int32, Int32)

Initializes a new instance of the WSSecurityTokenSerializer class.

WSSecurityTokenSerializer()

Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs

Initializes a new instance of the WSSecurityTokenSerializer class.

public:
 WSSecurityTokenSerializer();
public WSSecurityTokenSerializer ();
Public Sub New ()

Applies to

WSSecurityTokenSerializer(Boolean)

Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs

Initializes a new instance of the WSSecurityTokenSerializer class.

public:
 WSSecurityTokenSerializer(bool emitBspRequiredAttributes);
public WSSecurityTokenSerializer (bool emitBspRequiredAttributes);
new System.ServiceModel.Security.WSSecurityTokenSerializer : bool -> System.ServiceModel.Security.WSSecurityTokenSerializer
Public Sub New (emitBspRequiredAttributes As Boolean)

Parameters

emitBspRequiredAttributes
Boolean

The value to use for the EmitBspRequiredAttributes property. When true, this includes ValueType and EncodingType attributes where applicable during security token serialization.

Applies to

WSSecurityTokenSerializer(SecurityVersion)

Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs

Initializes a new instance of the WSSecurityTokenSerializer class.

public:
 WSSecurityTokenSerializer(System::ServiceModel::Security::SecurityVersion ^ securityVersion);
public WSSecurityTokenSerializer (System.ServiceModel.Security.SecurityVersion securityVersion);
new System.ServiceModel.Security.WSSecurityTokenSerializer : System.ServiceModel.Security.SecurityVersion -> System.ServiceModel.Security.WSSecurityTokenSerializer
Public Sub New (securityVersion As SecurityVersion)

Parameters

securityVersion
SecurityVersion

The security version.

Applies to

WSSecurityTokenSerializer(SecurityVersion, Boolean)

Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs

Initializes a new instance of the WSSecurityTokenSerializer class.

public:
 WSSecurityTokenSerializer(System::ServiceModel::Security::SecurityVersion ^ securityVersion, bool emitBspRequiredAttributes);
public WSSecurityTokenSerializer (System.ServiceModel.Security.SecurityVersion securityVersion, bool emitBspRequiredAttributes);
new System.ServiceModel.Security.WSSecurityTokenSerializer : System.ServiceModel.Security.SecurityVersion * bool -> System.ServiceModel.Security.WSSecurityTokenSerializer
Public Sub New (securityVersion As SecurityVersion, emitBspRequiredAttributes As Boolean)

Parameters

securityVersion
SecurityVersion

The security version.

emitBspRequiredAttributes
Boolean

The value to use for the EmitBspRequiredAttributes property.

Applies to

WSSecurityTokenSerializer(SecurityVersion, Boolean, SamlSerializer)

Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs

Initializes a new instance of the WSSecurityTokenSerializer class.

public:
 WSSecurityTokenSerializer(System::ServiceModel::Security::SecurityVersion ^ securityVersion, bool emitBspRequiredAttributes, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer);
public WSSecurityTokenSerializer (System.ServiceModel.Security.SecurityVersion securityVersion, bool emitBspRequiredAttributes, System.IdentityModel.Tokens.SamlSerializer samlSerializer);
new System.ServiceModel.Security.WSSecurityTokenSerializer : System.ServiceModel.Security.SecurityVersion * bool * System.IdentityModel.Tokens.SamlSerializer -> System.ServiceModel.Security.WSSecurityTokenSerializer
Public Sub New (securityVersion As SecurityVersion, emitBspRequiredAttributes As Boolean, samlSerializer As SamlSerializer)

Parameters

securityVersion
SecurityVersion

The security version.

emitBspRequiredAttributes
Boolean

The value to use for the EmitBspRequiredAttributes property.

samlSerializer
SamlSerializer

The extensibility point used for serializing and deserializing SAML tokens.

Applies to

WSSecurityTokenSerializer(SecurityVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable<Type>)

Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs

Initializes a new instance of the WSSecurityTokenSerializer class.

public:
 WSSecurityTokenSerializer(System::ServiceModel::Security::SecurityVersion ^ securityVersion, bool emitBspRequiredAttributes, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::ServiceModel::Security::SecurityStateEncoder ^ securityStateEncoder, System::Collections::Generic::IEnumerable<Type ^> ^ knownTypes);
public WSSecurityTokenSerializer (System.ServiceModel.Security.SecurityVersion securityVersion, bool emitBspRequiredAttributes, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.ServiceModel.Security.SecurityStateEncoder securityStateEncoder, System.Collections.Generic.IEnumerable<Type> knownTypes);
new System.ServiceModel.Security.WSSecurityTokenSerializer : System.ServiceModel.Security.SecurityVersion * bool * System.IdentityModel.Tokens.SamlSerializer * System.ServiceModel.Security.SecurityStateEncoder * seq<Type> -> System.ServiceModel.Security.WSSecurityTokenSerializer
Public Sub New (securityVersion As SecurityVersion, emitBspRequiredAttributes As Boolean, samlSerializer As SamlSerializer, securityStateEncoder As SecurityStateEncoder, knownTypes As IEnumerable(Of Type))

Parameters

securityVersion
SecurityVersion

The security version.

emitBspRequiredAttributes
Boolean

The value to use for the EmitBspRequiredAttributes property.

samlSerializer
SamlSerializer

The extensibility point used for serializing and deserializing SAML tokens.

securityStateEncoder
SecurityStateEncoder

The encoder used for encoding and decoding security state that is attached as a cookie to security context tokens.

knownTypes
IEnumerable<Type>

A collection of types. These known types must be declared to include custom claims as part of the security context token's cookie.

Exceptions

The securityVersion is null.

Applies to

WSSecurityTokenSerializer(SecurityVersion, TrustVersion, SecureConversationVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable<Type>)

Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs

Initializes a new instance of the WSSecurityTokenSerializer class.

public:
 WSSecurityTokenSerializer(System::ServiceModel::Security::SecurityVersion ^ securityVersion, System::ServiceModel::Security::TrustVersion ^ trustVersion, System::ServiceModel::Security::SecureConversationVersion ^ secureConversationVersion, bool emitBspRequiredAttributes, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::ServiceModel::Security::SecurityStateEncoder ^ securityStateEncoder, System::Collections::Generic::IEnumerable<Type ^> ^ knownTypes);
public WSSecurityTokenSerializer (System.ServiceModel.Security.SecurityVersion securityVersion, System.ServiceModel.Security.TrustVersion trustVersion, System.ServiceModel.Security.SecureConversationVersion secureConversationVersion, bool emitBspRequiredAttributes, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.ServiceModel.Security.SecurityStateEncoder securityStateEncoder, System.Collections.Generic.IEnumerable<Type> knownTypes);
new System.ServiceModel.Security.WSSecurityTokenSerializer : System.ServiceModel.Security.SecurityVersion * System.ServiceModel.Security.TrustVersion * System.ServiceModel.Security.SecureConversationVersion * bool * System.IdentityModel.Tokens.SamlSerializer * System.ServiceModel.Security.SecurityStateEncoder * seq<Type> -> System.ServiceModel.Security.WSSecurityTokenSerializer
Public Sub New (securityVersion As SecurityVersion, trustVersion As TrustVersion, secureConversationVersion As SecureConversationVersion, emitBspRequiredAttributes As Boolean, samlSerializer As SamlSerializer, securityStateEncoder As SecurityStateEncoder, knownTypes As IEnumerable(Of Type))

Parameters

securityVersion
SecurityVersion

The security version.

trustVersion
TrustVersion

The set of supported versions of the WS-Trust specification.

secureConversationVersion
SecureConversationVersion

The set of supported versions of the WS-SecureConversation specification.

emitBspRequiredAttributes
Boolean

The value to use for the EmitBspRequiredAttributes property.

samlSerializer
SamlSerializer

The extensibility point used for serializing and deserializing SAML tokens.

securityStateEncoder
SecurityStateEncoder

The encoder used for encoding and decoding security state that is attached as a cookie to security context tokens.

knownTypes
IEnumerable<Type>

A collection of known types. These known types must be declared to include custom claims as part of the security context token's cookie.

Applies to

WSSecurityTokenSerializer(SecurityVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable<Type>, Int32, Int32, Int32)

Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs

Initializes a new instance of the WSSecurityTokenSerializer class.

public:
 WSSecurityTokenSerializer(System::ServiceModel::Security::SecurityVersion ^ securityVersion, bool emitBspRequiredAttributes, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::ServiceModel::Security::SecurityStateEncoder ^ securityStateEncoder, System::Collections::Generic::IEnumerable<Type ^> ^ knownTypes, int maximumKeyDerivationOffset, int maximumKeyDerivationLabelLength, int maximumKeyDerivationNonceLength);
public WSSecurityTokenSerializer (System.ServiceModel.Security.SecurityVersion securityVersion, bool emitBspRequiredAttributes, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.ServiceModel.Security.SecurityStateEncoder securityStateEncoder, System.Collections.Generic.IEnumerable<Type> knownTypes, int maximumKeyDerivationOffset, int maximumKeyDerivationLabelLength, int maximumKeyDerivationNonceLength);
new System.ServiceModel.Security.WSSecurityTokenSerializer : System.ServiceModel.Security.SecurityVersion * bool * System.IdentityModel.Tokens.SamlSerializer * System.ServiceModel.Security.SecurityStateEncoder * seq<Type> * int * int * int -> System.ServiceModel.Security.WSSecurityTokenSerializer
Public Sub New (securityVersion As SecurityVersion, emitBspRequiredAttributes As Boolean, samlSerializer As SamlSerializer, securityStateEncoder As SecurityStateEncoder, knownTypes As IEnumerable(Of Type), maximumKeyDerivationOffset As Integer, maximumKeyDerivationLabelLength As Integer, maximumKeyDerivationNonceLength As Integer)

Parameters

securityVersion
SecurityVersion

The security version.

emitBspRequiredAttributes
Boolean

The value to use for the EmitBspRequiredAttributes property.

samlSerializer
SamlSerializer

The extensibility point used for serializing and deserializing SAML tokens.

securityStateEncoder
SecurityStateEncoder

The encoder used for encoding and decoding security state that is attached as a cookie to security context tokens.

knownTypes
IEnumerable<Type>

A collection of known types. These known types must be declared to include custom claims as part of the security context token's cookie.

maximumKeyDerivationOffset
Int32

The maximum key derivation offset. This setting places a bound on the amount of processing the server does when deserializing Derived Key Tokens.

maximumKeyDerivationLabelLength
Int32

The maximum key derivation label length. This setting places a bound on the amount of processing the server does when deserializing Derived Key Tokens.

maximumKeyDerivationNonceLength
Int32

The maximum key derivation nonce length. This setting places a bound on the amount of processing the server does when deserializing Derived Key Tokens.

Exceptions

The securityVersion is null.

The maximumKeyDerivationOffset is less than 0, maximumKeyDerivationLabelLength is less than 0, or maximumKeyDerivationNonceLength is less than or equal to 0.

Applies to

WSSecurityTokenSerializer(SecurityVersion, TrustVersion, SecureConversationVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable<Type>, Int32, Int32, Int32)

Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs

Initializes a new instance of the WSSecurityTokenSerializer class.

public:
 WSSecurityTokenSerializer(System::ServiceModel::Security::SecurityVersion ^ securityVersion, System::ServiceModel::Security::TrustVersion ^ trustVersion, System::ServiceModel::Security::SecureConversationVersion ^ secureConversationVersion, bool emitBspRequiredAttributes, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::ServiceModel::Security::SecurityStateEncoder ^ securityStateEncoder, System::Collections::Generic::IEnumerable<Type ^> ^ knownTypes, int maximumKeyDerivationOffset, int maximumKeyDerivationLabelLength, int maximumKeyDerivationNonceLength);
public WSSecurityTokenSerializer (System.ServiceModel.Security.SecurityVersion securityVersion, System.ServiceModel.Security.TrustVersion trustVersion, System.ServiceModel.Security.SecureConversationVersion secureConversationVersion, bool emitBspRequiredAttributes, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.ServiceModel.Security.SecurityStateEncoder securityStateEncoder, System.Collections.Generic.IEnumerable<Type> knownTypes, int maximumKeyDerivationOffset, int maximumKeyDerivationLabelLength, int maximumKeyDerivationNonceLength);
new System.ServiceModel.Security.WSSecurityTokenSerializer : System.ServiceModel.Security.SecurityVersion * System.ServiceModel.Security.TrustVersion * System.ServiceModel.Security.SecureConversationVersion * bool * System.IdentityModel.Tokens.SamlSerializer * System.ServiceModel.Security.SecurityStateEncoder * seq<Type> * int * int * int -> System.ServiceModel.Security.WSSecurityTokenSerializer
Public Sub New (securityVersion As SecurityVersion, trustVersion As TrustVersion, secureConversationVersion As SecureConversationVersion, emitBspRequiredAttributes As Boolean, samlSerializer As SamlSerializer, securityStateEncoder As SecurityStateEncoder, knownTypes As IEnumerable(Of Type), maximumKeyDerivationOffset As Integer, maximumKeyDerivationLabelLength As Integer, maximumKeyDerivationNonceLength As Integer)

Parameters

securityVersion
SecurityVersion

The security version.

trustVersion
TrustVersion

The set of supported versions of the WS-Trust specification.

secureConversationVersion
SecureConversationVersion

The set of supported versions of the WS-SecureConversation specification.

emitBspRequiredAttributes
Boolean

The value to use for the EmitBspRequiredAttributes property.

samlSerializer
SamlSerializer

The extensibility point used for serializing and deserializing SAML tokens.

securityStateEncoder
SecurityStateEncoder

The encoder used for encoding and decoding security state that is attached as a cookie to security context tokens.

knownTypes
IEnumerable<Type>

A collection of known types. These known types must be declared to include custom claims as part of the security context token's cookie.

maximumKeyDerivationOffset
Int32

The maximum key derivation offset. This setting places a bound on the amount of processing the server does when deserializing Derived Key Tokens.

maximumKeyDerivationLabelLength
Int32

The maximum key derivation label length. This setting places a bound on the amount of processing the server does when deserializing Derived Key Tokens.

maximumKeyDerivationNonceLength
Int32

The maximum key derivation nonce length. This setting places a bound on the amount of processing the server does when deserializing Derived Key Tokens.

Applies to