@NotThreadSafe public abstract class AuthSchemeBase extends java.lang.Object implements ContextAwareAuthScheme
| 构造器和说明 |
|---|
AuthSchemeBase() |
AuthSchemeBase(ChallengeState challengeState)
已过时。
(4.3) do not use.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Header |
authenticate(Credentials credentials,
HttpRequest request,
HttpContext context)
Produces an authorization string for the given set of
Credentials. |
ChallengeState |
getChallengeState()
Returns
ChallengeState value or null if unchallenged. |
boolean |
isProxy()
Returns
true if authenticating against a proxy, false
otherwise. |
protected abstract void |
parseChallenge(CharArrayBuffer buffer,
int beginIndex,
int endIndex) |
void |
processChallenge(Header header)
Processes the given challenge token.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitauthenticate, getParameter, getRealm, getSchemeName, isComplete, isConnectionBased@Deprecated public AuthSchemeBase(ChallengeState challengeState)
public AuthSchemeBase()
public void processChallenge(Header header) throws MalformedChallengeException
processChallenge 在接口中 AuthSchemeheader - the challenge headerMalformedChallengeException - is thrown if the authentication challenge
is malformedpublic Header authenticate(Credentials credentials, HttpRequest request, HttpContext context) throws AuthenticationException
ContextAwareAuthSchemeCredentials.authenticate 在接口中 ContextAwareAuthSchemecredentials - The set of credentials to be used for athenticationrequest - The request being authenticatedcontext - HTTP contextAuthenticationException - if authorization string cannot
be generated due to an authentication failureprotected abstract void parseChallenge(CharArrayBuffer buffer, int beginIndex, int endIndex) throws MalformedChallengeException
public boolean isProxy()
true if authenticating against a proxy, false
otherwise.public ChallengeState getChallengeState()
ChallengeState value or null if unchallenged.public java.lang.String toString()
toString 在类中 java.lang.Object