AsymmetricSecurityBindingElement 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建此类的实例。
重载
AsymmetricSecurityBindingElement() |
创建此类的实例。 |
AsymmetricSecurityBindingElement(SecurityTokenParameters) |
使用指定的接收方令牌参数初始化 AsymmetricSecurityBindingElement 类的新实例。 |
AsymmetricSecurityBindingElement(SecurityTokenParameters, SecurityTokenParameters) |
使用指定的接收方和发起方令牌参数初始化 AsymmetricSecurityBindingElement 的新实例。 |
AsymmetricSecurityBindingElement()
创建此类的实例。
public:
AsymmetricSecurityBindingElement();
public AsymmetricSecurityBindingElement ();
Public Sub New ()
注解
下面的成员由此构造函数设置:
成员 | Value |
---|---|
MessageProtectionOrder | SignBeforeEncrypt |
RequireSignatureConfirmation | false |
InitiatorTokenParameters | null |
RecipientTokenParameters | null |
AllowSerializedSigningTokenOnReply | false |
适用于
AsymmetricSecurityBindingElement(SecurityTokenParameters)
使用指定的接收方令牌参数初始化 AsymmetricSecurityBindingElement 类的新实例。
public:
AsymmetricSecurityBindingElement(System::ServiceModel::Security::Tokens::SecurityTokenParameters ^ recipientTokenParameters);
public AsymmetricSecurityBindingElement (System.ServiceModel.Security.Tokens.SecurityTokenParameters recipientTokenParameters);
new System.ServiceModel.Channels.AsymmetricSecurityBindingElement : System.ServiceModel.Security.Tokens.SecurityTokenParameters -> System.ServiceModel.Channels.AsymmetricSecurityBindingElement
Public Sub New (recipientTokenParameters As SecurityTokenParameters)
参数
- recipientTokenParameters
- SecurityTokenParameters
定义接收方的令牌(例如,服务器的 X.509 证书)。
注解
下面的成员由此构造函数设置:
成员 | Value |
---|---|
MessageProtectionOrder | SignBeforeEncrypt |
RequireSignatureConfirmation | false |
InitiatorTokenParameters | null |
RecipientTokenParameters | recipientTokenParameters |
AllowSerializedSigningTokenOnReply | false |
适用于
AsymmetricSecurityBindingElement(SecurityTokenParameters, SecurityTokenParameters)
使用指定的接收方和发起方令牌参数初始化 AsymmetricSecurityBindingElement 的新实例。
public:
AsymmetricSecurityBindingElement(System::ServiceModel::Security::Tokens::SecurityTokenParameters ^ recipientTokenParameters, System::ServiceModel::Security::Tokens::SecurityTokenParameters ^ initiatorTokenParameters);
public AsymmetricSecurityBindingElement (System.ServiceModel.Security.Tokens.SecurityTokenParameters recipientTokenParameters, System.ServiceModel.Security.Tokens.SecurityTokenParameters initiatorTokenParameters);
new System.ServiceModel.Channels.AsymmetricSecurityBindingElement : System.ServiceModel.Security.Tokens.SecurityTokenParameters * System.ServiceModel.Security.Tokens.SecurityTokenParameters -> System.ServiceModel.Channels.AsymmetricSecurityBindingElement
Public Sub New (recipientTokenParameters As SecurityTokenParameters, initiatorTokenParameters As SecurityTokenParameters)
参数
- recipientTokenParameters
- SecurityTokenParameters
定义接收方的令牌(例如,服务器的 X.509 证书)。
- initiatorTokenParameters
- SecurityTokenParameters
定义发起方的令牌(例如,客户端的 X.509 证书)。
示例
下面的代码显示调用此构造函数的一种方法。
AsymmetricSecurityBindingElement abe =
(AsymmetricSecurityBindingElement)SecurityBindingElement.
CreateMutualCertificateBindingElement(
MessageSecurityVersion.
WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10);
Dim abe As AsymmetricSecurityBindingElement = CType(SecurityBindingElement.CreateMutualCertificateBindingElement(MessageSecurityVersion.WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10), AsymmetricSecurityBindingElement)
注解
下面的成员由此构造函数设置:
成员 | Value |
---|---|
MessageProtectionOrder | SignBeforeEncrypt |
RequireSignatureConfirmation | false |
InitiatorTokenParameters | initiatorTokenParameters |
RecipientTokenParameters | recipientTokenParameters |
AllowSerializedSigningTokenOnReply | false |