@Contract(threading=SAFE) public class SystemDefaultCredentialsProvider extends Object implements CredentialsStore
CredentialsStore backed by standard
 JRE Authenticator.| Constructor and Description | 
|---|
| SystemDefaultCredentialsProvider()Default constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Clears all credentials. | 
| Credentials | getCredentials(AuthScope authScope,
              HttpContext context)Returns  credentialsfor the given authentication scope,
 if available. | 
| void | setCredentials(AuthScope authScope,
              Credentials credentials)Sets the  credentialsfor the given authentication
 scope. | 
public SystemDefaultCredentialsProvider()
public void clear()
CredentialsStoreclear in interface CredentialsStorepublic Credentials getCredentials(AuthScope authScope, HttpContext context)
CredentialsProvidercredentials for the given authentication scope,
 if available.getCredentials in interface CredentialsProviderauthScope - the authentication scopecontext - the http contextpublic void setCredentials(AuthScope authScope, Credentials credentials)
CredentialsStorecredentials for the given authentication
 scope. Any previous credentials for the given scope will be overwritten.setCredentials in interface CredentialsStoreauthScope - the authentication scopecredentials - the authentication credentials
 for the given scope.CredentialsProvider.getCredentials(AuthScope, org.apache.hc.core5.http.protocol.HttpContext)