Redigera

Dela via


SecurityBindingElement.CreateUserNameForSslBindingElement Method

Definition

Creates a symmetric security binding element that is configured to require user name- and password-based client authentication and certificate-based server authentication. The client authenticates the server using the SOAP-level SSL protocol.

Overloads

CreateUserNameForSslBindingElement()

Creates a symmetric security binding element that is configured to require user name- and password-based client authentication and certificate-based server authentication. The client authenticates the server using the SOAP-level SSL protocol.

CreateUserNameForSslBindingElement(Boolean)

Creates a symmetric security binding element that is configured to require user name- and password-based client authentication and certificate-based server authentication. The client authenticates the server using the SOAP-level SSL protocol.

CreateUserNameForSslBindingElement()

Creates a symmetric security binding element that is configured to require user name- and password-based client authentication and certificate-based server authentication. The client authenticates the server using the SOAP-level SSL protocol.

public:
 static System::ServiceModel::Channels::SymmetricSecurityBindingElement ^ CreateUserNameForSslBindingElement();
public static System.ServiceModel.Channels.SymmetricSecurityBindingElement CreateUserNameForSslBindingElement ();
static member CreateUserNameForSslBindingElement : unit -> System.ServiceModel.Channels.SymmetricSecurityBindingElement
Public Shared Function CreateUserNameForSslBindingElement () As SymmetricSecurityBindingElement

Returns

A SymmetricSecurityBindingElement object.

Remarks

The security context token issued at the end of SSPI negotiation is cookie based.

The client does not need to be provisioned with the server certificate because it obtains it as part of the SSL protocol.

Applies to

CreateUserNameForSslBindingElement(Boolean)

Creates a symmetric security binding element that is configured to require user name- and password-based client authentication and certificate-based server authentication. The client authenticates the server using the SOAP-level SSL protocol.

public:
 static System::ServiceModel::Channels::SymmetricSecurityBindingElement ^ CreateUserNameForSslBindingElement(bool requireCancellation);
public static System.ServiceModel.Channels.SymmetricSecurityBindingElement CreateUserNameForSslBindingElement (bool requireCancellation);
static member CreateUserNameForSslBindingElement : bool -> System.ServiceModel.Channels.SymmetricSecurityBindingElement
Public Shared Function CreateUserNameForSslBindingElement (requireCancellation As Boolean) As SymmetricSecurityBindingElement

Parameters

requireCancellation
Boolean

Specifies whether cancellation is required. Setting it to false enables a security context token that is useful in Web farm scenarios, because in this mode the session state is encoded inside the established security context token instead of being kept in the server memory.

Returns

A SymmetricSecurityBindingElement object.

Remarks

If requireCancellation is false, stateful security context tokens are issued; otherwise, stateless security context tokens are issued.

The client does not need to be provisioned with the server certificate because it obtains it as part of the SSL protocol.

Applies to