Table of Contents

Interface ICredentialsProvider

Namespace
RabbitMQ.Client
Assembly
RabbitMQ.Client.dll
public interface ICredentialsProvider

Properties

Name

string Name { get; }

Property Value

string

Password

string Password { get; }

Property Value

string

UserName

string UserName { get; }

Property Value

string

ValidUntil

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

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.

void Refresh()