Interface ICredentialsProvider
public interface ICredentialsProvider
Properties
Name
string Name { get; }
Property Value
Password
string Password { get; }
Property Value
UserName
string UserName { get; }
Property Value
ValidUntil
If credentials have an expiry time this property returns the interval. Otherwise, it returns null.
TimeSpan? ValidUntil { get; }
Property Value
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()