ערוך

שתף באמצעות


SecurityBindingElement.CreateIssuedTokenForSslBindingElement Method

Definition

Creates a symmetric security binding element that is configured to require client authentication based on an issued token and server authentication based on the server certificate.

Overloads

CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters, Boolean)

Creates a symmetric security binding element that is configured to require client authentication based on an issued token and server authentication based on the server certificate.

CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters)

Creates a symmetric security binding element that is configured to require client authentication based on an issued token and server authentication based on the server certificate.

Remarks

The issued token can have a symmetric or an asymmetric key. The client authenticates the server using the SOAP-level SSL protocol.

Both overloads use a IssuedSecurityTokenParameters parameter. One of them includes a parameter that specifies whether cancellation is required.

CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters, Boolean)

Creates a symmetric security binding element that is configured to require client authentication based on an issued token and server authentication based on the server certificate.

public:
 static System::ServiceModel::Channels::SymmetricSecurityBindingElement ^ CreateIssuedTokenForSslBindingElement(System::ServiceModel::Security::Tokens::IssuedSecurityTokenParameters ^ issuedTokenParameters, bool requireCancellation);
public static System.ServiceModel.Channels.SymmetricSecurityBindingElement CreateIssuedTokenForSslBindingElement (System.ServiceModel.Security.Tokens.IssuedSecurityTokenParameters issuedTokenParameters, bool requireCancellation);
static member CreateIssuedTokenForSslBindingElement : System.ServiceModel.Security.Tokens.IssuedSecurityTokenParameters * bool -> System.ServiceModel.Channels.SymmetricSecurityBindingElement
Public Shared Function CreateIssuedTokenForSslBindingElement (issuedTokenParameters As IssuedSecurityTokenParameters, requireCancellation As Boolean) As SymmetricSecurityBindingElement

Parameters

requireCancellation
Boolean

true if cancellation is required; otherwise, false. 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.

Exceptions

issuedTokenParameters is null.

Remarks

The created binding has RequireSignatureConfirmation set to true and MessageSecurityVersion set to WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11.

Applies to

CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters)

Creates a symmetric security binding element that is configured to require client authentication based on an issued token and server authentication based on the server certificate.

public:
 static System::ServiceModel::Channels::SymmetricSecurityBindingElement ^ CreateIssuedTokenForSslBindingElement(System::ServiceModel::Security::Tokens::IssuedSecurityTokenParameters ^ issuedTokenParameters);
public static System.ServiceModel.Channels.SymmetricSecurityBindingElement CreateIssuedTokenForSslBindingElement (System.ServiceModel.Security.Tokens.IssuedSecurityTokenParameters issuedTokenParameters);
static member CreateIssuedTokenForSslBindingElement : System.ServiceModel.Security.Tokens.IssuedSecurityTokenParameters -> System.ServiceModel.Channels.SymmetricSecurityBindingElement
Public Shared Function CreateIssuedTokenForSslBindingElement (issuedTokenParameters As IssuedSecurityTokenParameters) As SymmetricSecurityBindingElement

Parameters

Returns

A SymmetricSecurityBindingElement object.

Exceptions

issuedTokenParameters is null.

Remarks

The server issues a cookie-based security context token at the end of the SSL protocol.

The created binding has RequireSignatureConfirmation set to true and MessageSecurityVersion set to WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11.

Applies to