Share via


SharedSecretCredential Class

Note: This API is now obsolete.

Represents the shared secret credential used for a client endpoint.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ObsoleteAttribute("This class is deprecated.  Please use SharedSecretTokenProvider instead.  See TokenProvider.CreateSharedSecretTokenProvider for details.")> _
Public Class SharedSecretCredential _
    Inherits TransportClientCredentialBase
'Usage
Dim instance As SharedSecretCredential
[ObsoleteAttribute("This class is deprecated.  Please use SharedSecretTokenProvider instead.  See TokenProvider.CreateSharedSecretTokenProvider for details.")]
public class SharedSecretCredential : TransportClientCredentialBase
[ObsoleteAttribute(L"This class is deprecated.  Please use SharedSecretTokenProvider instead.  See TokenProvider.CreateSharedSecretTokenProvider for details.")]
public ref class SharedSecretCredential : public TransportClientCredentialBase
[<ObsoleteAttribute("This class is deprecated.  Please use SharedSecretTokenProvider instead.  See TokenProvider.CreateSharedSecretTokenProvider for details.")>]
type SharedSecretCredential =  
    class
        inherit TransportClientCredentialBase
    end
public class SharedSecretCredential extends TransportClientCredentialBase

The SharedSecretCredential type exposes the following members.

Properties

  Name Description
Public property IssuerName Gets or sets the issuer name.
Public property IssuerSecret Gets or sets the issuer secret.

Top

Methods

  Name Description
Public methodStatic member ComputeSimpleWebTokenString(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 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

Remarks

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;
Dim behavior As New TransportClientEndpointBehavior()
behavior.CredentialType = TransportClientCredentialType.SharedSecret
behavior.Credentials.SharedSecret.IssuerName = issuerName
behavior.Credentials.SharedSecret.IssuerSecret = issuerSecret

Thread Safety

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

See Also

Reference

Microsoft.ServiceBus.Description Namespace