@NotThreadSafe public class BasicSchemeHC4 extends RFC2617SchemeHC4
| Constructor and Description |
|---|
BasicSchemeHC4() |
BasicSchemeHC4(ChallengeState challengeState)
Deprecated.
(4.3) do not use.
|
BasicSchemeHC4(java.nio.charset.Charset credentialsCharset) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.Header |
authenticate(org.apache.http.auth.Credentials credentials,
org.apache.http.HttpRequest request)
|
org.apache.http.Header |
authenticate(org.apache.http.auth.Credentials credentials,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Produces basic authorization header for the given set of
Credentials. |
static org.apache.http.Header |
authenticate(org.apache.http.auth.Credentials credentials,
java.lang.String charset,
boolean proxy)
Deprecated.
|
java.lang.String |
getSchemeName()
Returns textual designation of the basic authentication scheme.
|
boolean |
isComplete()
Tests if the Basic authentication process has been completed.
|
boolean |
isConnectionBased()
Returns false.
|
void |
processChallenge(org.apache.http.Header header)
Processes the Basic challenge.
|
getCredentialsCharset, getParameter, getParameters, getRealm, parseChallengegetChallengeState, isProxy, toStringpublic BasicSchemeHC4(java.nio.charset.Charset credentialsCharset)
@Deprecated public BasicSchemeHC4(ChallengeState challengeState)
public BasicSchemeHC4()
public java.lang.String getSchemeName()
basicpublic void processChallenge(org.apache.http.Header header)
throws org.apache.http.auth.MalformedChallengeException
processChallenge in interface org.apache.http.auth.AuthSchemeprocessChallenge in class AuthSchemeBaseHC4header - the challenge headerorg.apache.http.auth.MalformedChallengeException - is thrown if the authentication challenge
is malformedpublic boolean isComplete()
public boolean isConnectionBased()
@Deprecated
public org.apache.http.Header authenticate(org.apache.http.auth.Credentials credentials,
org.apache.http.HttpRequest request)
throws org.apache.http.auth.AuthenticationException
ContextAwareAuthScheme.authenticate(
Credentials, HttpRequest, org.apache.http.protocol.HttpContext)org.apache.http.auth.AuthenticationExceptionpublic org.apache.http.Header authenticate(org.apache.http.auth.Credentials credentials,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
throws org.apache.http.auth.AuthenticationException
Credentials.authenticate in interface ContextAwareAuthSchemeauthenticate in class AuthSchemeBaseHC4credentials - The set of credentials to be used for authenticationrequest - The request being authenticatedcontext - HTTP contextorg.apache.http.auth.InvalidCredentialsException - if authentication
credentials are not valid or not applicable for this authentication schemeorg.apache.http.auth.AuthenticationException - if authorization string cannot
be generated due to an authentication failure@Deprecated
public static org.apache.http.Header authenticate(org.apache.http.auth.Credentials credentials,
java.lang.String charset,
boolean proxy)
authenticate(Credentials, HttpRequest, HttpContext).Credentials and charset.credentials - The credentials to encode.charset - The charset to use for encoding the credentialsCopyright © 1999-2015 The Apache Software Foundation. All rights reserved.