Class BasicCredentialsProvider
public class BasicCredentialsProvider : ICredentialsProvider
- Inheritance
-
BasicCredentialsProvider
- Implements
- Inherited Members
Constructors
BasicCredentialsProvider(string, string)
public BasicCredentialsProvider(string userName, string password)
Parameters
BasicCredentialsProvider(string, string, string)
public BasicCredentialsProvider(string name, string userName, string password)
Parameters
Properties
Name
public string Name { get; }
Property Value
Password
public string Password { get; }
Property Value
UserName
public string UserName { get; }
Property Value
ValidUntil
If credentials have an expiry time this property returns the interval. Otherwise, it returns null.
public 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.
public void Refresh()