Aracılığıyla paylaş


FederatedMessageSecurityOverHttp.IssuedTokenType Özellik

Tanım

Güvenlik belirteci hizmeti tarafından verilmesi gereken belirteç türünü belirtir.

public:
 property System::String ^ IssuedTokenType { System::String ^ get(); void set(System::String ^ value); };
public string IssuedTokenType { get; set; }
member this.IssuedTokenType : string with get, set
Public Property IssuedTokenType As String

Özellik Değeri

String

Verilen belirtecin türü. Varsayılan değer olan , nullWCF'nin STS'den saml güvenlik belirteci istemesine neden olur.

Örnekler

Aşağıdaki kod, bağlamadan bu özelliğe nasıl erişilip ayarlandığını gösterir.

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

  // Set IssuedTokenType to SAML 1.1
  b.Security.Message.IssuedTokenType =
      "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#samlv1.1";
' 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

  ' Set IssuedTokenType to SAML 1.1
  b.Security.Message.IssuedTokenType = "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#samlv1.1"

Açıklamalar

Bu özellik, hizmetin beklediği belirteç türünü gösterir ve hizmette hangi SecurityTokenAuthenticator'ın oluşturulduğunu denetler. İstemcide, istemcinin verilen belirteç isteğinde güvenlik belirteci hizmetine gönderilen türü denetler.

IssuedTokenType genellikle URI biçimini alır.

Şunlara uygulanır