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)
'Declaration <ObsoleteAttribute> _ Public Enumeration TransportClientCredentialType 'Usage Dim instance As TransportClientCredentialType
[ObsoleteAttribute] public enum TransportClientCredentialType
[ObsoleteAttribute] public enum class TransportClientCredentialType
[<ObsoleteAttribute>] type TransportClientCredentialType
public enum TransportClientCredentialType
|SharedSecret||Specifies that the shared secret credential is used to authenticate with the Windows Azure Service Bus.|
|SimpleWebToken||Specifies that the Simple Web Token credential is used to authenticate with the Windows Azure Service Bus.|
|Saml||Specifies that the Security Assertion Markup Language credential is used to authenticate with the Windows Azure Service Bus.|
|Unauthenticated||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.|
|TokenProvider||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