Прочетете на английски Редактиране

Споделяне чрез


WSSecurityTokenSerializer Constructors

Definition

Initializes a new instance of the WSSecurityTokenSerializer class.

Overloads

WSSecurityTokenSerializer()

Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs

Initializes a new instance of the WSSecurityTokenSerializer class.

public WSSecurityTokenSerializer ();

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(Boolean)

Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs

Initializes a new instance of the WSSecurityTokenSerializer class.

public WSSecurityTokenSerializer (bool emitBspRequiredAttributes);

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

WSSecurityTokenSerializer(SecurityVersion)

Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs

Initializes a new instance of the WSSecurityTokenSerializer class.

public WSSecurityTokenSerializer (System.ServiceModel.Security.SecurityVersion 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

WSSecurityTokenSerializer(SecurityVersion, Boolean)

Source:
WSSecurityTokenSerializer.cs
Source:
WSSecurityTokenSerializer.cs

Initializes a new instance of the WSSecurityTokenSerializer class.

public WSSecurityTokenSerializer (System.ServiceModel.Security.SecurityVersion securityVersion, bool emitBspRequiredAttributes);

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

WSSecurityTokenSerializer(SecurityVersion, Boolean, SamlSerializer)

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);

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);

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);

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);

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);

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