WSSecurityTokenSerializer Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the WSSecurityTokenSerializer class.
- Source:
- WSSecurityTokenSerializer.cs
- Source:
- WSSecurityTokenSerializer.cs
Initializes a new instance of the WSSecurityTokenSerializer class.
public:
WSSecurityTokenSerializer();
public WSSecurityTokenSerializer ();
Public Sub New ()
Applies to
.NET Framework 4.8.1 и други версии
Продукт | Версии |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
- 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
.NET Framework 4.8.1 и други версии
Продукт | Версии |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
- 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
.NET Framework 4.8.1 и други версии
Продукт | Версии |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
- 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
.NET Framework 4.8.1 и други версии
Продукт | Версии |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
- 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
.NET Framework 4.8.1 и други версии
Продукт | Версии |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
WSSecurityTokenSerializer(SecurityVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable<Type>)
- 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
.NET Framework 4.8.1 и други версии
Продукт | Версии |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
WSSecurityTokenSerializer(SecurityVersion, TrustVersion, SecureConversationVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable<Type>)
- 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
.NET Framework 4.8.1 и други версии
Продукт | Версии |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
WSSecurityTokenSerializer(SecurityVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable<Type>, Int32, Int32, Int32)
- 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
.NET Framework 4.8.1 и други версии
Продукт | Версии |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
WSSecurityTokenSerializer(SecurityVersion, TrustVersion, SecureConversationVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable<Type>, Int32, Int32, Int32)
- 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
.NET Framework 4.8.1 и други версии
Продукт | Версии |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: