This topic has not yet been rated - Rate this topic

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.

  Name Description
Public property IssuerName Gets or sets the issuer name.
Public property IssuerSecret Gets or sets the issuer secret.
Top
  Name Description
Public method Static member ComputeSimpleWebTokenString(String, 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 method Static member ComputeSimpleWebTokenString(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 method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (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.
Did you find this helpful?
(1500 characters remaining)