public interface CredentialsProvider
此接口的实现必须是线程安全的。 必须同步访问共享数据,因为可以从多个线程执行此接口的方法。
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
清除所有凭据。
|
Credentials |
getCredentials(AuthScope authscope)
获取给定身份验证范围的 credentials 。
|
void |
setCredentials(AuthScope authscope, Credentials credentials)
为给定的认证范围设置 credentials 。
|
void setCredentials(AuthScope authscope, Credentials credentials)
credentials 。
给定范围的任何以前的凭据将被覆盖。
authscope - authentication scope
credentials - 给定范围的认证credentials 。
getCredentials(AuthScope)
Credentials getCredentials(AuthScope authscope)
credentials 。
authscope - authentication scope
setCredentials(AuthScope, Credentials)
void clear()
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.