|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.httpclient.auth.AuthSchemeBase | +--org.apache.commons.httpclient.auth.RFC2617Scheme
Abstract authentication scheme class that lays foundation for all RFC 2617 compliant authetication schemes and provides capabilities common to all authentication schemes defined in RFC 2617.
Constructor Summary | |
RFC2617Scheme(String challenge)
Default constructor for RFC2617 compliant authetication schemes. |
Method Summary | |
String |
getID()
Returns a String identifying the authentication challenge. |
String |
getParameter(String name)
Returns authentication parameter with the given name, if available. |
protected Map |
getParameters()
Returns authentication parameters map. |
String |
getRealm()
Returns authentication realm. |
Methods inherited from class org.apache.commons.httpclient.auth.AuthSchemeBase |
equals,
hashCode,
toString |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public RFC2617Scheme(String challenge) throws MalformedChallengeException
challenge
- authentication challengeMethod Detail |
protected Map getParameters()
public String getParameter(String name)
name
- The name of the parameter to be returnedpublic String getRealm()
public String getID()
Additionally, the ID should take into account any changes to the authentication challenge and return a different value when appropriate. For example when the realm changes in basic authentication it should be considered a different authentication attempt and a different value should be returned.
This method simply returns the realm for the challenge.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |