Editare

Partajați prin


AsymmetricSecurityBindingElement Constructors

Definition

Creates an instance of this class.

Overloads

AsymmetricSecurityBindingElement()

Creates an instance of this class.

AsymmetricSecurityBindingElement(SecurityTokenParameters)

Initializes a new instance of AsymmetricSecurityBindingElement with the specified recipient token parameters.

AsymmetricSecurityBindingElement(SecurityTokenParameters, SecurityTokenParameters)

Initializes a new instance of AsymmetricSecurityBindingElement with the specified recipient and initiator token parameters.

AsymmetricSecurityBindingElement()

Creates an instance of this class.

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

Remarks

The following members are set by this constructor:

Member Value
MessageProtectionOrder SignBeforeEncrypt
RequireSignatureConfirmation false
InitiatorTokenParameters null
RecipientTokenParameters null
AllowSerializedSigningTokenOnReply false

Applies to

AsymmetricSecurityBindingElement(SecurityTokenParameters)

Initializes a new instance of AsymmetricSecurityBindingElement with the specified recipient token parameters.

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)

Parameters

recipientTokenParameters
SecurityTokenParameters

Defines the token for the recipient (for example, the server's X.509 certificate).

Remarks

The following members are set by this constructor:

Member Value
MessageProtectionOrder SignBeforeEncrypt
RequireSignatureConfirmation false
InitiatorTokenParameters null
RecipientTokenParameters recipientTokenParameters
AllowSerializedSigningTokenOnReply false

Applies to

AsymmetricSecurityBindingElement(SecurityTokenParameters, SecurityTokenParameters)

Initializes a new instance of AsymmetricSecurityBindingElement with the specified recipient and initiator token parameters.

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)

Parameters

recipientTokenParameters
SecurityTokenParameters

Defines the token for the recipient (for example the server's X.509 certificate).

initiatorTokenParameters
SecurityTokenParameters

Defines the token for the initiator (for example, the client's X.509 certificate).

Examples

The following code shows one way to call this constructor.

AsymmetricSecurityBindingElement abe =
    (AsymmetricSecurityBindingElement)SecurityBindingElement.
    CreateMutualCertificateBindingElement(
    MessageSecurityVersion.
    WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10);
Dim abe As AsymmetricSecurityBindingElement = CType(SecurityBindingElement.CreateMutualCertificateBindingElement(MessageSecurityVersion.WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10), AsymmetricSecurityBindingElement)

Remarks

The following members are set by this constructor:

Member Value
MessageProtectionOrder SignBeforeEncrypt
RequireSignatureConfirmation false
InitiatorTokenParameters initiatorTokenParameters
RecipientTokenParameters recipientTokenParameters
AllowSerializedSigningTokenOnReply false

Applies to