Class RFC2617Scheme
java.lang.Object
org.apache.http.impl.auth.AuthSchemeBase
org.apache.http.impl.auth.RFC2617Scheme
- All Implemented Interfaces:
AuthScheme, ContextAwareAuthScheme
- Direct Known Subclasses:
BasicScheme, DigestScheme
Abstract authentication scheme class that lays foundation for all
RFC 2617 compliant authentication schemes and provides capabilities common
to all authentication schemes defined in RFC 2617.
- Since:
- 4.0
-
Constructor Summary
ConstructorsConstructorDescriptionRFC2617Scheme(Charset credentialsCharset) RFC2617Scheme(ChallengeState challengeState) Deprecated.(4.3) do not use. -
Method Summary
Modifier and TypeMethodDescriptiongetParameter(String name) Returns authentication parameter with the given name, if available.Returns authentication parameters map.getRealm()Returns authentication realm.protected voidparseChallenge(CharArrayBuffer buffer, int pos, int len) Methods inherited from class AuthSchemeBase
authenticate, getChallengeState, isProxy, processChallenge, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface AuthScheme
authenticate, getSchemeName, isComplete, isConnectionBased
-
Constructor Details
-
RFC2617Scheme
Deprecated.(4.3) do not use.Creates an instance of RFC2617Scheme with the given challenge state.- Since:
- 4.2
-
RFC2617Scheme
- Since:
- 4.3
-
RFC2617Scheme
public RFC2617Scheme()
-
-
Method Details
-
getCredentialsCharset
- Since:
- 4.3
-
parseChallenge
protected void parseChallenge(CharArrayBuffer buffer, int pos, int len) throws MalformedChallengeException - Specified by:
parseChallengein classAuthSchemeBase- Throws:
MalformedChallengeException
-
getParameters
-
getParameter
-
getRealm
Returns authentication realm. The realm may not be null.- Returns:
- the authentication realm
-