@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,
              org.apache.hc.core5.http.protocol.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 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)public Credentials getCredentials(AuthScope authScope, org.apache.hc.core5.http.protocol.HttpContext context)
CredentialsProvidercredentials for the given authentication scope,
 if available.getCredentials in interface CredentialsProviderauthScope - the authentication scopecontext - the http contextpublic void clear()
CredentialsStoreclear in interface CredentialsStoreCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.