共用方式為


WSSecurityTokenSerializer 建構函式

定義

初始化 WSSecurityTokenSerializer 類別的新執行個體。

多載

WSSecurityTokenSerializer()

初始化 WSSecurityTokenSerializer 類別的新執行個體。

WSSecurityTokenSerializer(Boolean)

初始化 WSSecurityTokenSerializer 類別的新執行個體。

WSSecurityTokenSerializer(SecurityVersion)

初始化 WSSecurityTokenSerializer 類別的新執行個體。

WSSecurityTokenSerializer(SecurityVersion, Boolean)

初始化 WSSecurityTokenSerializer 類別的新執行個體。

WSSecurityTokenSerializer(SecurityVersion, Boolean, SamlSerializer)

初始化 WSSecurityTokenSerializer 類別的新執行個體。

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

初始化 WSSecurityTokenSerializer 類別的新執行個體。

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

初始化 WSSecurityTokenSerializer 類別的新執行個體。

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

初始化 WSSecurityTokenSerializer 類別的新執行個體。

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

初始化 WSSecurityTokenSerializer 類別的新執行個體。

WSSecurityTokenSerializer()

來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs

初始化 WSSecurityTokenSerializer 類別的新執行個體。

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

適用於

WSSecurityTokenSerializer(Boolean)

來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs

初始化 WSSecurityTokenSerializer 類別的新執行個體。

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

參數

emitBspRequiredAttributes
Boolean

用於 EmitBspRequiredAttributes 屬性的值。 當為 true 時,此會包含 ValueTypeEncodingType 屬性 (如果在安全性權杖序列化期間適用)。

適用於

WSSecurityTokenSerializer(SecurityVersion)

來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs

初始化 WSSecurityTokenSerializer 類別的新執行個體。

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)

參數

securityVersion
SecurityVersion

安全性版本。

適用於

WSSecurityTokenSerializer(SecurityVersion, Boolean)

來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs

初始化 WSSecurityTokenSerializer 類別的新執行個體。

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)

參數

securityVersion
SecurityVersion

安全性版本。

emitBspRequiredAttributes
Boolean

用於 EmitBspRequiredAttributes 屬性的值。

適用於

WSSecurityTokenSerializer(SecurityVersion, Boolean, SamlSerializer)

來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs

初始化 WSSecurityTokenSerializer 類別的新執行個體。

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)

參數

securityVersion
SecurityVersion

安全性版本。

emitBspRequiredAttributes
Boolean

用於 EmitBspRequiredAttributes 屬性的值。

samlSerializer
SamlSerializer

用於序列化和還原序列化 SAML 權杖的擴充點。

適用於

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

來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs

初始化 WSSecurityTokenSerializer 類別的新執行個體。

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

參數

securityVersion
SecurityVersion

安全性版本。

emitBspRequiredAttributes
Boolean

用於 EmitBspRequiredAttributes 屬性的值。

samlSerializer
SamlSerializer

用於序列化和還原序列化 SAML 權杖的擴充點。

securityStateEncoder
SecurityStateEncoder

編碼器,這會用來編碼和解碼已做為 Cookie 附加至安全性內容權杖的安全性狀態。

knownTypes
IEnumerable<Type>

型別集合。 這些已知的類型必須經過宣告,自訂宣告才能包含成為安全性內容權杖 Cookie 的一部分。

例外狀況

securityVersionnull

適用於

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

來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs

初始化 WSSecurityTokenSerializer 類別的新執行個體。

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

參數

securityVersion
SecurityVersion

安全性版本。

trustVersion
TrustVersion

一組 WS-Trust 規格的受支援版本。

secureConversationVersion
SecureConversationVersion

一組 WS-SecureConversation 規格的受支援版本。

emitBspRequiredAttributes
Boolean

用於 EmitBspRequiredAttributes 屬性的值。

samlSerializer
SamlSerializer

用於序列化和還原序列化 SAML 權杖的擴充點。

securityStateEncoder
SecurityStateEncoder

編碼器,這會用來編碼和解碼已做為 Cookie 附加至安全性內容權杖的安全性狀態。

knownTypes
IEnumerable<Type>

已知型別的集合。 這些已知的類型必須經過宣告,自訂宣告才能包含成為安全性內容權杖 Cookie 的一部分。

適用於

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

來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs

初始化 WSSecurityTokenSerializer 類別的新執行個體。

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)

參數

securityVersion
SecurityVersion

安全性版本。

emitBspRequiredAttributes
Boolean

用於 EmitBspRequiredAttributes 屬性的值。

samlSerializer
SamlSerializer

用於序列化和還原序列化 SAML 權杖的擴充點。

securityStateEncoder
SecurityStateEncoder

編碼器,這會用來編碼和解碼已做為 Cookie 附加至安全性內容權杖的安全性狀態。

knownTypes
IEnumerable<Type>

已知型別的集合。 這些已知的類型必須經過宣告,自訂宣告才能包含成為安全性內容權杖 Cookie 的一部分。

maximumKeyDerivationOffset
Int32

最大的金鑰衍生偏差。 當還原序列化衍生金鑰權杖時,這項設定會限定伺服器執行的處理數量。

maximumKeyDerivationLabelLength
Int32

最大的金鑰衍生標籤長度。 當還原序列化衍生金鑰權杖時,這項設定會限定伺服器執行的處理數量。

maximumKeyDerivationNonceLength
Int32

最大的金鑰衍生 Nonce 長度。 當還原序列化衍生金鑰權杖時,這項設定會限定伺服器執行的處理數量。

例外狀況

securityVersionnull

maximumKeyDerivationOffset is 小於 0、maximumKeyDerivationLabelLength 小於 0,或 maximumKeyDerivationNonceLength 小於或等於 0。

適用於

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

來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs
來源:
WSSecurityTokenSerializer.cs

初始化 WSSecurityTokenSerializer 類別的新執行個體。

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)

參數

securityVersion
SecurityVersion

安全性版本。

trustVersion
TrustVersion

一組 WS-Trust 規格的受支援版本。

secureConversationVersion
SecureConversationVersion

一組 WS-SecureConversation 規格的受支援版本。

emitBspRequiredAttributes
Boolean

用於 EmitBspRequiredAttributes 屬性的值。

samlSerializer
SamlSerializer

用於序列化和還原序列化 SAML 權杖的擴充點。

securityStateEncoder
SecurityStateEncoder

編碼器,這會用來編碼和解碼已做為 Cookie 附加至安全性內容權杖的安全性狀態。

knownTypes
IEnumerable<Type>

已知型別的集合。 這些已知的類型必須經過宣告,自訂宣告才能包含成為安全性內容權杖 Cookie 的一部分。

maximumKeyDerivationOffset
Int32

最大的金鑰衍生偏差。 當還原序列化衍生金鑰權杖時,這項設定會限定伺服器執行的處理數量。

maximumKeyDerivationLabelLength
Int32

最大的金鑰衍生標籤長度。 當還原序列化衍生金鑰權杖時,這項設定會限定伺服器執行的處理數量。

maximumKeyDerivationNonceLength
Int32

最大的金鑰衍生 Nonce 長度。 當還原序列化衍生金鑰權杖時,這項設定會限定伺服器執行的處理數量。

適用於