Package org.apache.hc.client5.http.auth
Interface CredentialsStore
- All Superinterfaces:
CredentialsProvider
- All Known Implementing Classes:
BasicCredentialsProvider
,SystemDefaultCredentialsProvider
Abstract store of authentication credentials.
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.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears all credentials.void
setCredentials
(AuthScope authScope, Credentials credentials) Sets thecredentials
for the given authentication scope.Methods inherited from interface org.apache.hc.client5.http.auth.CredentialsProvider
getCredentials
-
Method Details
-
setCredentials
Sets thecredentials
for the given authentication scope. Any previous credentials for the given scope will be overwritten.- Parameters:
authScope
- theauthentication scope
credentials
- the authenticationcredentials
for the given scope.- See Also:
-
clear
void clear()Clears all credentials.
-