public abstract class RFC2617Scheme extends Object implements AuthScheme
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.
| 构造器和说明 |
|---|
RFC2617Scheme()
Default constructor for RFC2617 compliant authetication schemes.
|
RFC2617Scheme(String challenge)
已过时。
Use parameterless constructor and
AuthScheme.processChallenge(String)
method |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getID()
已过时。
no longer used
|
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.
|
void |
processChallenge(String challenge)
Processes the given challenge token.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, authenticate, getSchemeName, isComplete, isConnectionBasedpublic RFC2617Scheme()
public RFC2617Scheme(String challenge) throws MalformedChallengeException
AuthScheme.processChallenge(String)
methodchallenge - authentication challengeMalformedChallengeException - is thrown if the authentication challenge
is malformedpublic void processChallenge(String challenge) throws MalformedChallengeException
processChallenge 在接口中 AuthSchemechallenge - the challenge stringMalformedChallengeException - is thrown if the authentication challenge
is malformedprotected Map getParameters()
public String getParameter(String name)
getParameter 在接口中 AuthSchemename - The name of the parameter to be returnedpublic String getRealm()
getRealm 在接口中 AuthSchemepublic 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.
getID 在接口中 AuthSchemeCopyright © 2017. All rights reserved.