public interface CredentialsStore extends 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 and Description |
---|---|
void |
clear()
Clears all credentials.
|
void |
setCredentials(AuthScope authScope,
Credentials credentials)
Sets the
credentials for the given authentication
scope. |
getCredentials
void clear()
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 scope
credentials
- the authentication credentials
for the given scope.CredentialsProvider.getCredentials(AuthScope, org.apache.hc.core5.http.protocol.HttpContext)