Share via


ServiceBusNamespaceClientSettings.Credential Property

Gets or sets the client credential.

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

Syntax

'Declaration
Public Property Credential As TransportClientCredentialBase
    Get
    Set
'Usage
Dim instance As ServiceBusNamespaceClientSettings
Dim value As TransportClientCredentialBase

value = instance.Credential

instance.Credential = value
public TransportClientCredentialBase Credential { get; set; }
public:
property TransportClientCredentialBase^ Credential {
    TransportClientCredentialBase^ get ();
    void set (TransportClientCredentialBase^ value);
}
member Credential : TransportClientCredentialBase with get, set
function get Credential () : TransportClientCredentialBase
function set Credential (value : TransportClientCredentialBase)

Property Value

Type: Microsoft.ServiceBus.Description.TransportClientCredentialBase
Returns TransportClientCredentialBase.

Remarks

The client credential can be any of these:

  • SAML

  • Shared secret, such as a password

  • SimpleWebToken

  • Null credentials, which is unauthenticated. This means that anyone, even with no security check, can send and receive messages through service namespace queues, topics, or subscriptions.

When SAML tokens are serialized in messages, either when they are issued by a security token service or when they are presented by clients to services as part of authentication, the maximum message size quota must be sufficiently large to accommodate the SAML token and the other message parts. In normal cases, the default message size quotas are sufficient. However, in cases where a SAML token is large because it contains hundreds of claims, you may need to increase the quotas to accommodate the serialized token.

See Also

Reference

ServiceBusNamespaceClientSettings Class

Microsoft.ServiceBus Namespace