BasicCredentialsProvider, SystemDefaultCredentialsProviderpublic interface CredentialsProvider
Implementations of this interface must be thread-safe. Access to shared data must be synchronized as methods of this interface may be executed from multiple threads.
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Clears all credentials.
|
Credentials |
getCredentials(AuthScope authscope) |
Get the
credentials for the given authentication scope. |
void |
setCredentials(AuthScope authscope,
Credentials credentials) |
Sets the
credentials for the given authentication
scope. |
void setCredentials(AuthScope authscope, Credentials credentials)
credentials for the given authentication
scope. Any previous credentials for the given scope will be overwritten.authscope - the authentication scopecredentials - the authentication credentials
for the given scope.getCredentials(AuthScope)Credentials getCredentials(AuthScope authscope)
credentials for the given authentication scope.authscope - the authentication scopesetCredentials(AuthScope, Credentials)void clear()