Eksportér (0) Udskriv
Udvid alt
EN
Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.
0 ud af 1 klassificerede dette som nyttigt - Bedøm dette emne

TransportClientCredentialType Enumeration

Note: This API is now obsolete.

Represents the type of client credential to be used for authentication on the Windows Azure Service Bus transport.

Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
[ObsoleteAttribute]
public enum TransportClientCredentialType
Member nameDescription
SharedSecretSpecifies that the shared secret credential is used to authenticate with the Windows Azure Service Bus.
SimpleWebTokenSpecifies that the Simple Web Token credential is used to authenticate with the Windows Azure Service Bus.
SamlSpecifies that the Security Assertion Markup Language credential is used to authenticate with the Windows Azure Service Bus.
UnauthenticatedNo client credential provided. This option avoids acquiring and sending a token altogether and is required for all clients that are not required to authenticate per their service binding's policy.
TokenProviderSpecifies that the custom token provider credential is used to authenticate with the 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;

Dim behavior As New TransportClientEndpointBehavior()
behavior.CredentialType = TransportClientCredentialType.SharedSecret
behavior.Credentials.SharedSecret.IssuerName = issuerName
behavior.Credentials.SharedSecret.IssuerSecret = issuerSecret
Syntes du, dette var nyttigt?
(1500 tegn tilbage)
Tak for din feedback

Fællesskabsindhold

Vis:
© 2014 Microsoft. Alle rettigheder forbeholdes.