An authentication scheme should be able to support the following functions:
Authentication schemes may be stateful involving a series of challenge-response exchanges.
Important Note
implementations of this interface MUST also implement ContextAwareAuthScheme
interface in order to remain API compatible with newer versions of HttpClient.
| Modifier and Type | Method and Description |
|---|---|
| public Header | Returns: the authorization stringThe set of credentials to be used for athentication credentials, HttpRequest The request being authenticated request)
Deprecated
(4.1) Use
Produces an authorization string for the given set of ContextAwareAuthScheme#authenticate(Credentials, HttpRequest, org.
Credentials.
|
| public String | Returns: the parameter with the given nameThe name of the parameter to be returned name)Returns authentication parameter with the given name, if available. |
| public String | |
| public String | Returns: the name of the given authentication schemeReturns textual designation of the given authentication scheme. |
| public boolean | Returns: true if the authentication process has been completed,
false otherwise.Authentication process may involve a series of challenge-response exchanges. |
| public boolean | Returns: true if the scheme is connection based, false
if the scheme is request based.Tests if the authentication scheme is provides authorization on a per connection basis instead of usual per request basis |
| public void |
| authenticate | back to summary |
|---|---|
| public Header authenticate(Credentials credentials, HttpRequest request) throws AuthenticationException
Deprecated (4.1) Use Produces an authorization string for the given set of
| |
| getParameter | back to summary |
|---|---|
| public String getParameter(final String name) Returns authentication parameter with the given name, if available. | |
| getRealm | back to summary |
|---|---|
| public String getRealm() Returns authentication realm. If the concept of an authentication
realm is not applicable to the given authentication scheme, returns
| |
| getSchemeName | back to summary |
|---|---|
| public String getSchemeName() Returns textual designation of the given authentication scheme.
| |
| isComplete | back to summary |
|---|---|
| public boolean isComplete() Authentication process may involve a series of challenge-response exchanges. This method tests if the authorization process has been completed, either successfully or unsuccessfully, that is, all the required authorization challenges have been processed in their entirety.
| |
| isConnectionBased | back to summary |
|---|---|
| public boolean isConnectionBased() Tests if the authentication scheme is provides authorization on a per connection basis instead of usual per request basis
| |
| processChallenge | back to summary |
|---|---|
| public void processChallenge(final Header header) throws MalformedChallengeException Processes the given challenge token. Some authentication schemes may involve multiple challenge-response exchanges. Such schemes must be able to maintain the state information when dealing with sequential challenges
| |