Table of Contents

Class BasicCredentialsProvider

Namespace
RabbitMQ.Client
Assembly
RabbitMQ.Client.dll
public class BasicCredentialsProvider : ICredentialsProvider
Inheritance
BasicCredentialsProvider
Implements
Inherited Members

Constructors

BasicCredentialsProvider(string, string)

public BasicCredentialsProvider(string userName, string password)

Parameters

userName string
password string

BasicCredentialsProvider(string, string, string)

public BasicCredentialsProvider(string name, string userName, string password)

Parameters

name string
userName string
password string

Properties

Name

public string Name { get; }

Property Value

string

Password

public string Password { get; }

Property Value

string

UserName

public string UserName { get; }

Property Value

string

ValidUntil

If credentials have an expiry time this property returns the interval. Otherwise, it returns null.

public TimeSpan? ValidUntil { get; }

Property Value

TimeSpan?

Methods

Refresh()

Before the credentials are available, be it Username, Password or ValidUntil, the credentials must be obtained by calling this method. And to keep it up to date, this method must be called before the ValidUntil interval.

public void Refresh()