|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.http.impl.auth.AuthSchemeBaseHC4
org.apache.http.impl.auth.RFC2617SchemeHC4
org.apache.http.impl.auth.BasicSchemeHC4
@NotThreadSafe public class BasicSchemeHC4
Basic authentication scheme as defined in RFC 2617.
| Constructor Summary | |
|---|---|
BasicSchemeHC4()
|
|
BasicSchemeHC4(ChallengeState challengeState)
Deprecated. (4.3) do not use. |
|
BasicSchemeHC4(java.nio.charset.Charset credentialsCharset)
|
|
| Method Summary | |
|---|---|
org.apache.http.Header |
authenticate(org.apache.http.auth.Credentials credentials,
org.apache.http.HttpRequest request)
Deprecated. (4.2) Use ContextAwareAuthScheme.authenticate(
Credentials, HttpRequest, org.apache.http.protocol.HttpContext) |
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. (4.3) use authenticate(Credentials, HttpRequest, HttpContext). |
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. |
| Methods inherited from class org.apache.http.impl.auth.RFC2617SchemeHC4 |
|---|
getCredentialsCharset, getParameter, getParameters, getRealm, parseChallenge |
| Methods inherited from class org.apache.http.impl.auth.AuthSchemeBaseHC4 |
|---|
getChallengeState, isProxy, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicSchemeHC4(java.nio.charset.Charset credentialsCharset)
@Deprecated public BasicSchemeHC4(ChallengeState challengeState)
public BasicSchemeHC4()
| Method Detail |
|---|
public java.lang.String getSchemeName()
basic
public 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 header
org.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.AuthenticationException
public 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 context
org.apache.http.auth.InvalidCredentialsException - if authentication
credentials are not valid or not applicable for this authentication scheme
org.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 credentials
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||