public abstract class AuthSchemeBase extends Object implements ContextAwareAuthScheme
| Modifier and Type | Field and Description | 
|---|---|
protected ChallengeState | 
challengeState  | 
| Constructor and Description | 
|---|
AuthSchemeBase()  | 
AuthSchemeBase(ChallengeState challengeState)
Deprecated. 
 
(4.3) do not use. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
org.apache.http.Header | 
authenticate(Credentials credentials,
            org.apache.http.HttpRequest request,
            org.apache.http.protocol.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(org.apache.http.util.CharArrayBuffer buffer,
              int beginIndex,
              int endIndex)  | 
void | 
processChallenge(org.apache.http.Header header)
Processes the given challenge token. 
 | 
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 with the given challenge
 state.public AuthSchemeBase()
public void processChallenge(org.apache.http.Header header)
                      throws MalformedChallengeException
processChallenge in interface AuthSchemeheader - the challenge headerMalformedChallengeException - is thrown if the authentication challenge
 is malformedpublic org.apache.http.Header authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws AuthenticationException
ContextAwareAuthSchemeCredentials.authenticate in interface 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(org.apache.http.util.CharArrayBuffer buffer,
                  int beginIndex,
                  int endIndex)
                                throws MalformedChallengeException
MalformedChallengeExceptionpublic boolean isProxy()
true if authenticating against a proxy, false
 otherwise.public ChallengeState getChallengeState()
ChallengeState value or null if unchallenged.Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.