Freigeben über


FederatedMessageSecurityOverHttp.IssuedKeyType Eigenschaft

Definition

Gibt den Typ des auszustellenden Schlüssels an.

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

Eigenschaftswert

Ein SecurityKeyType. Der Standardwert ist SymmetricKey.

Ausnahmen

Der Wert ist kein gültiger SecurityKeyType.

Beispiele

Der folgende Code zeigt, wie auf diese Eigenschaft von der Bindung zugegriffen wird und wie sie festgelegt wird.

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

Hinweise

Gültige Werte von SecurityKeyType sind SymmetricKey und AsymmetricKey.

Gilt für: