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
显示: