FederatedMessageSecurityOverHttp.NegotiateServiceCredential 속성

정의

메시지 수준 SSL 협상을 수행하여 서비스의 인증서를 가져올지 여부를 지정합니다.

public:
 property bool NegotiateServiceCredential { bool get(); void set(bool value); };
public bool NegotiateServiceCredential { get; set; }
member this.NegotiateServiceCredential : bool with get, set
Public Property NegotiateServiceCredential As Boolean

속성 값

서비스 인증서가 협상되면 이고, 서비스 인증서를 대역외로 사용할 수 있으면 입니다. 기본값은 true입니다.

예제

다음 코드에서는 바인딩에서 이 속성에 액세스하고 설정하는 방법을 보여 있습니다.

// This method creates a WSFederationHttpBinding.
public static WSFederationHttpBinding
    CreateWSFederationHttpBinding(bool isClient)
{
  // Create an instance of the WSFederationHttpBinding.
  WSFederationHttpBinding b = new WSFederationHttpBinding();

  // Set the security mode to Message.
  b.Security.Mode = WSFederationHttpSecurityMode.Message;

  // Set the Algorithm Suite to Basic256Rsa15.
  b.Security.Message.AlgorithmSuite = SecurityAlgorithmSuite.Basic256Rsa15;

  // Set NegotiateServiceCredential to true.
  b.Security.Message.NegotiateServiceCredential = true;
' This method creates a WSFederationHttpBinding.
Public Shared Function CreateWSFederationHttpBinding(ByVal isClient As Boolean) As WSFederationHttpBinding
  ' Create an instance of the WSFederationHttpBinding.
  Dim b As New WSFederationHttpBinding()

  ' Set the security mode to Message.
  b.Security.Mode = WSFederationHttpSecurityMode.Message

  ' Set the Algorithm Suite to Basic256Rsa15.
  b.Security.Message.AlgorithmSuite = SecurityAlgorithmSuite.Basic256Rsa15

  ' Set NegotiateServiceCredential to true.
  b.Security.Message.NegotiateServiceCredential = True

설명

이 속성은 서비스 인증서가 클라이언트와 서비스 간에 자동으로 협상되는지 여부를 나타냅니다. 이 속성이 true면 이러한 협상이 발생합니다. 이 속성이 false면 서비스와 통신하기 전에 클라이언트에서 서비스 인증서를 지정해야 합니다.

서비스는 항상 인증서를 지정해야 합니다.

이 속성이 true이면 서비스 인증서에 대한 메시지 수준 SSL 협상은 IssuerAddress 및 IssuerBinding 속성(또는 LocalIssuerAddress 및 LocalIssuerBinding 속성)을 통해 지정된 보안 토큰 서비스가 보안 토큰을 발급하도록 요청하기 전에 발생합니다.

적용 대상