@ThreadSafe public class SystemDefaultCredentialsProvider extends java.lang.Object implements CredentialsProvider
CredentialsProvider backed by standard
JRE Authenticator.| 构造器和说明 |
|---|
SystemDefaultCredentialsProvider()
Default constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear()
Clears all credentials.
|
Credentials |
getCredentials(AuthScope authscope)
Get the
credentials for the given authentication scope. |
void |
setCredentials(AuthScope authscope,
Credentials credentials)
Sets the
credentials for the given authentication
scope. |
public SystemDefaultCredentialsProvider()
public void setCredentials(AuthScope authscope, Credentials credentials)
CredentialsProvidercredentials for the given authentication
scope. Any previous credentials for the given scope will be overwritten.setCredentials 在接口中 CredentialsProviderauthscope - the authentication scopecredentials - the authentication credentials
for the given scope.CredentialsProvider.getCredentials(AuthScope)public Credentials getCredentials(AuthScope authscope)
CredentialsProvidercredentials for the given authentication scope.getCredentials 在接口中 CredentialsProviderauthscope - the authentication scopeCredentialsProvider.setCredentials(AuthScope, Credentials)public void clear()
CredentialsProviderclear 在接口中 CredentialsProvider