Package org.apache.http.client
Interface CredentialsProvider
- All Known Implementing Classes:
BasicCredentialsProvider
public interface CredentialsProvider
Abstract credentials provider.
- Since:
- 4.0
- Author:
- Oleg Kalnichevski
-
Method Summary
Modifier and Type Method Description voidclear()Clears all credentials.CredentialsgetCredentials(AuthScope authscope)Get thecredentialsfor the given authentication scope.voidsetCredentials(AuthScope authscope, Credentials credentials)Sets thecredentialsfor the given authentication scope.
-
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:
getCredentials(AuthScope)
-
getCredentials
Get thecredentialsfor the given authentication scope.- Parameters:
authscope- theauthentication scope- Returns:
- the credentials
- See Also:
setCredentials(AuthScope, Credentials)
-
clear
void clear()Clears all credentials.
-