다음을 통해 공유


FederatedMessageSecurityOverHttp.IssuedKeyType 속성

정의

발급할 키 유형을 지정합니다.

public:
 property System::IdentityModel::Tokens::SecurityKeyType IssuedKeyType { System::IdentityModel::Tokens::SecurityKeyType get(); void set(System::IdentityModel::Tokens::SecurityKeyType value); };
public System.IdentityModel.Tokens.SecurityKeyType IssuedKeyType { get; set; }
member this.IssuedKeyType : System.IdentityModel.Tokens.SecurityKeyType with get, set
Public Property IssuedKeyType As SecurityKeyType

속성 값

SecurityKeyType

SecurityKeyType 기본값은 SymmetricKey입니다.

예외

값이 올바른 SecurityKeyType이 아닌 경우

예제

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

// 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;

  // Set IssuedKeyType to Symmetric.
  b.Security.Message.IssuedKeyType = SecurityKeyType.SymmetricKey;
' 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

  ' Set IssuedKeyType to Symmetric.
  b.Security.Message.IssuedKeyType = SecurityKeyType.SymmetricKey

설명

SecurityKeyType에 사용 가능한 값은 SymmetricKeyAsymmetricKey입니다.

적용 대상