SharedSecretCredential Class

Note: This API is now obsolete.

Represents the shared secret credential used for a client endpoint.

System..::..Object
  Microsoft.ServiceBus.Description..::..TransportClientCredentialBase
    Microsoft.ServiceBus.Description..::..SharedSecretCredential

Namespace:  Microsoft.ServiceBus.Description
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

[ObsoleteAttribute("This class is deprecated.  Please use SharedSecretTokenProvider instead.  See TokenProvider.CreateSharedSecretTokenProvider for details.")]
public class SharedSecretCredential : TransportClientCredentialBase

The SharedSecretCredential type exposes the following members.

  NameDescription
Public propertyIssuerNameGets or sets the issuer name.
Public propertyIssuerSecretGets or sets the issuer secret.
Top

  NameDescription
Public methodStatic memberComputeSimpleWebTokenString(String, array<Byte>[]()[][])Returns a string of URL encoded name/value pairs for a Simple Web Token assertion using the specified issuer name and issuer secret.
Public methodStatic memberComputeSimpleWebTokenString(String, String)Returns a string of URL encoded name/value pairs for a Simple Web Token assertion using the specified issuer name and issuer secret.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

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 through the TransportClientCredentials..::..SharedSecret property of type SharedSecretCredential.

TransportClientEndpointBehavior behavior = new TransportClientEndpointBehavior();
behavior.CredentialType = TransportClientCredentialType.SharedSecret;
behavior.Credentials.SharedSecret.IssuerName = issuerName;
behavior.Credentials.SharedSecret.IssuerSecret = issuerSecret;

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

Show: