Package org.apache.http.impl.client
Class SystemDefaultCredentialsProvider
- java.lang.Object
 - 
- org.apache.http.impl.client.SystemDefaultCredentialsProvider
 
 
- 
- All Implemented Interfaces:
 CredentialsProvider
@Contract(threading=SAFE) public class SystemDefaultCredentialsProvider extends java.lang.Object implements CredentialsProvider
Implementation ofCredentialsProviderbacked by standard JREAuthenticator.- Since:
 - 4.3
 
 
- 
- 
Constructor Summary
Constructors Constructor Description SystemDefaultCredentialsProvider()Default constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
- 
setCredentials
public void setCredentials(AuthScope authscope, Credentials credentials)
Description copied from interface:CredentialsProviderSets thecredentialsfor the given authentication scope. Any previous credentials for the given scope will be overwritten.- Specified by:
 setCredentialsin interfaceCredentialsProvider- Parameters:
 authscope- theauthentication scopecredentials- the authenticationcredentialsfor the given scope.- See Also:
 CredentialsProvider.getCredentials(AuthScope)
 
- 
getCredentials
public Credentials getCredentials(AuthScope authscope)
Description copied from interface:CredentialsProviderGet thecredentialsfor the given authentication scope.- Specified by:
 getCredentialsin interfaceCredentialsProvider- Parameters:
 authscope- theauthentication scope- Returns:
 - the credentials
 - See Also:
 CredentialsProvider.setCredentials(AuthScope, Credentials)
 
- 
clear
public void clear()
Description copied from interface:CredentialsProviderClears all credentials.- Specified by:
 clearin interfaceCredentialsProvider
 
 - 
 
 -