SalesBuy
1-855-856-7678
Technical SupportSupport
Note: This API is now obsolete.
Represents the type of client credential to be used for authentication on the Service Bus transport.
Namespace: Microsoft.ServiceBus
| Member name | Description | |
|---|---|---|
| SharedSecret | Specifies that the shared secret credential is used to authenticate with the Service Bus. | |
| SimpleWebToken | Specifies that the Simple Web Token credential is used to authenticate with the Service Bus. | |
| Saml | Specifies that the Security Assertion Markup Language credential is used to authenticate with the 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 Service Bus. |
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