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 TypeMethodDescriptionvoidclear()Clears all credentials.voidsetCredentials(AuthScope authScope, Credentials credentials) Sets thecredentialsfor the given authentication scope.Methods inherited from interface CredentialsProvider
getCredentials
-
Method Details
-
setCredentials
Sets thecredentialsfor the given authentication scope. Any previous credentials for the given scope will be overwritten.- Parameters:
authScope- theauthentication scopecredentials- the authenticationcredentialsfor the given scope.- See Also:
-
clear
void clear()Clears all credentials.
-