Note: This API is now obsolete.
Represents the type of client credential to be used for authentication on the Windows Azure Service Bus transport.
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
|Specifies that the shared secret credential is used to authenticate with the Windows Azure Service Bus.|
|Specifies that the Simple Web Token credential is used to authenticate with the Windows Azure Service Bus.|
|Specifies that the Security Assertion Markup Language credential is used to authenticate with the Windows Azure Service Bus.|
|No 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.|
|Specifies 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