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 | |
---|---|---|
IssuerName | Gets or sets the issuer name. | |
IssuerSecret | Gets or sets the issuer secret. |
Top
Methods
Name | Description | |
---|---|---|
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. | |
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. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
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.