WSSecurityTokenSerializer 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 WSSecurityTokenSerializer 类的新实例。
重载
WSSecurityTokenSerializer()
初始化 WSSecurityTokenSerializer 类的新实例。
public:
WSSecurityTokenSerializer();
public WSSecurityTokenSerializer ();
Public Sub New ()
适用于
WSSecurityTokenSerializer(Boolean)
初始化 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
和 ValueType
属性,则为 EncodingType
。
适用于
WSSecurityTokenSerializer(SecurityVersion)
初始化 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 类的新实例。
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 类的新实例。
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 类的新实例。
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 的一部分包含在内。
例外
securityVersion
为 null
。
适用于
WSSecurityTokenSerializer(SecurityVersion, TrustVersion, SecureConversationVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable<Type>)
初始化 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 类的新实例。
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 长度。 在反序列化派生的密钥令牌时,此设置可限制服务器所执行的处理量。
例外
securityVersion
为 null
。
maximumKeyDerivationOffset
小于 0,maximumKeyDerivationLabelLength
小于 0,或 maximumKeyDerivationNonceLength
小于或等于 0。
适用于
WSSecurityTokenSerializer(SecurityVersion, TrustVersion, SecureConversationVersion, Boolean, SamlSerializer, SecurityStateEncoder, IEnumerable<Type>, Int32, Int32, Int32)
初始化 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 长度。 在反序列化派生的密钥令牌时,此设置可限制服务器所执行的处理量。