TransportClientCredentialType 列舉

注意:此 API 已經過時。

代表要用來在 Windows Azure Service Bus 傳輸上進行驗證的用戶端認證類型。

命名空間:  Microsoft.ServiceBus
組件:  Microsoft.ServiceBus (在 Microsoft.ServiceBus.dll 中)

[ObsoleteAttribute]
public enum TransportClientCredentialType

成員名稱說明
SharedSecret指定共用密碼認證用來與 Windows Azure Service Bus 進行驗證。
SimpleWebToken指定簡易 Web 權杖認證用來與 Windows Azure Service Bus 進行驗證。
Saml指定安全性聲明標記語言認證用來與 Windows Azure Service Bus 進行驗證。
Unauthenticated未提供任何用戶端認證。這個選項可避免一起取得和傳送權杖,不需要根據其服務繫結原則進行驗證的用戶端都必須使用這個選項。
TokenProvider指定自訂權杖提供者認證用來與 Windows Azure Service Bus 進行驗證。

Windows Azure Service Bus supports only Full Trust code access security.

This is used with TransportClientEndpointBehavior to describe the client credentials.

The following code example sets the credential type of the TransportClientEndpointBehavior to the shared secret credential type, and then sets the issuer name and issuer secret credentials to be used with this credential type.

TransportClientEndpointBehavior behavior = new TransportClientEndpointBehavior();
behavior.CredentialType = TransportClientCredentialType.SharedSecret;
behavior.Credentials.SharedSecret.IssuerName = issuerName;
behavior.Credentials.SharedSecret.IssuerSecret = issuerSecret;
TransportClientEndpointBehavior behavior = new TransportClientEndpointBehavior();
behavior.CredentialType = TransportClientCredentialType.SharedSecret;
behavior.Credentials.SharedSecret.IssuerName = issuerName;
behavior.Credentials.SharedSecret.IssuerSecret = issuerSecret;

Dim behavior As New TransportClientEndpointBehavior()
behavior.CredentialType = TransportClientCredentialType.SharedSecret
behavior.Credentials.SharedSecret.IssuerName = issuerName
behavior.Credentials.SharedSecret.IssuerSecret = issuerSecret
Dim behavior As New TransportClientEndpointBehavior()
behavior.CredentialType = TransportClientCredentialType.SharedSecret
behavior.Credentials.SharedSecret.IssuerName = issuerName
behavior.Credentials.SharedSecret.IssuerSecret = issuerSecret
顯示: