public class AuthState extends Object
| Constructor and Description |
|---|
AuthState() |
| Modifier and Type | Method and Description |
|---|---|
Queue<AuthOption> |
getAuthOptions()
退货可用 AuthOption s。
|
AuthScheme |
getAuthScheme()
返回实际 AuthScheme 。
|
AuthScope |
getAuthScope()
已过时。
(4.2)不要使用。
|
Credentials |
getCredentials()
退货实际 Credentials 。
|
AuthProtocolState |
getState() |
boolean |
hasAuthOptions()
如果 AuthOption可用,则返回true ,否则为false 。
|
void |
invalidate()
已过时。
(4.2)使用
reset()
|
boolean |
isValid()
已过时。
(4.2)不要使用
|
void |
reset()
重置验证状态。
|
void |
setAuthScheme(AuthScheme authScheme)
已过时。
|
void |
setAuthScope(AuthScope authScope)
已过时。
(4.2)不要使用。
|
void |
setCredentials(Credentials credentials)
已过时。
|
void |
setState(AuthProtocolState state) |
String |
toString() |
void |
update(AuthScheme authScheme, Credentials credentials)
使用 AuthScheme和Credentials更新身份验证状态。
|
void |
update(Queue<AuthOption> authOptions)
更新auth状态与队列 AuthOption s。
|
public void reset()
public AuthProtocolState getState()
public void setState(AuthProtocolState state)
public AuthScheme getAuthScheme()
AuthScheme 。
可能为null。
public Credentials getCredentials()
Credentials 。
可能为null。
public void update(AuthScheme authScheme, Credentials credentials)
AuthScheme和Credentials更新身份验证状态。
authScheme - 认证方案。
可能不为null。
credentials - 用户信用证。
可能不为null。
public Queue<AuthOption> getAuthOptions()
AuthOption s。
可能为null。
public boolean hasAuthOptions()
AuthOption可用,则返回true ,否则为false 。
public void update(Queue<AuthOption> authOptions)
AuthOption s。
authOptions - 验证选项的队列。
可能不为null或为空。
@Deprecated public void invalidate()
reset()
@Deprecated public boolean isValid()
@Deprecated public void setAuthScheme(AuthScheme authScheme)
update(AuthScheme, Credentials)
authentication scheme 。
authScheme - authentication scheme
@Deprecated public void setCredentials(Credentials credentials)
update(AuthScheme, Credentials)
Credentials
credentials - 用户凭证
@Deprecated public AuthScope getAuthScope()
AuthScope(如果有)
null
@Deprecated public void setAuthScope(AuthScope authScope)
AuthScope 。
authScope - 认证范围
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.