public abstract class AuthSchemeBase extends Object implements ContextAwareAuthScheme
| Modifier and Type | Field and Description |
|---|---|
protected ChallengeState |
challengeState |
| Constructor and Description |
|---|
AuthSchemeBase() |
AuthSchemeBase(ChallengeState challengeState)
已过时。
(4.3)不要使用。
|
| Modifier and Type | Method and Description |
|---|---|
Header |
authenticate(Credentials credentials, HttpRequest request, HttpContext context)
为给定的一组 Credentials生成一个授权字符串。
|
ChallengeState |
getChallengeState()
如果没有挑战,返回 ChallengeState的价值或null 。
|
boolean |
isProxy()
如果对代理进行身份验证,则返回
true ,否则为
false 。
|
protected abstract void |
parseChallenge(CharArrayBuffer buffer, int beginIndex, int endIndex) |
void |
processChallenge(Header header)
处理给定的挑战令牌。
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitauthenticate, getParameter, getRealm, getSchemeName, isComplete, isConnectionBasedprotected ChallengeState challengeState
@Deprecated public AuthSchemeBase(ChallengeState challengeState)
AuthSchemeBase实例。
public AuthSchemeBase()
public void processChallenge(Header header) throws MalformedChallengeException
processChallenge在界面
AuthScheme
header - 挑战头
MalformedChallengeException - 如果验证挑战格式
MalformedChallengeException ,则会抛出此错误
public Header authenticate(Credentials credentials, HttpRequest request, HttpContext context) throws AuthenticationException
ContextAwareAuthScheme复制
Credentials生成一个授权字符串。
authenticate在界面
ContextAwareAuthScheme
credentials - 要用于验证的一组凭据
request - 请求被认证
context - HTTP上下文
AuthenticationException - 如果授权字符串由于身份验证失败而无法生成
protected abstract void parseChallenge(CharArrayBuffer buffer, int beginIndex, int endIndex) throws MalformedChallengeException
public boolean isProxy()
true ,否则为
false 。
public ChallengeState getChallengeState()
ChallengeState的价值或null如果没有挑战。
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.