Known Direct Subclasses
NTLMScheme |
NTLM is a proprietary authentication scheme developed by Microsoft
and optimized for Windows platforms. |
NegotiateScheme |
SPNEGO (Simple and Protected GSSAPI Negotiation Mechanism) authentication
scheme. |
RFC2617Scheme |
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. |
|
Known Indirect Subclasses
BasicScheme |
Basic authentication scheme as defined in RFC 2617. |
DigestScheme |
Digest authentication scheme as defined in RFC 2617. |
|
Class Overview
Abstract authentication scheme class that serves as a basis
for all authentication schemes supported by HttpClient. This class
defines the generic way of parsing an authentication challenge. It
does not make any assumptions regarding the format of the challenge
nor does it impose any specific way of responding to that challenge.
Public Constructors
Public Methods
Produces an authorization string for the given set of
Credentials
.
Parameters
credentials
| The set of credentials to be used for athentication |
request
| The request being authenticated |
context
| HTTP context |
public
boolean
isProxy
()
Returns true
if authenticating against a proxy, false
otherwise.
Returns
true
if authenticating against a proxy, false
otherwise
public
void
processChallenge
(Header header)
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
Parameters
header
| the challenge header |
Protected Methods
protected
abstract
void
parseChallenge
(CharArrayBuffer buffer, int beginIndex, int endIndex)