AuthScheme, ContextAwareAuthSchemepublic class NTLMScheme extends AuthSchemeBase
challengeState| Constructor | Description |
|---|---|
NTLMScheme() |
|
NTLMScheme(NTLMEngine engine) |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.http.Header |
authenticate(Credentials credentials,
org.apache.http.HttpRequest request) |
Produces an authorization string for the given set of
Credentials. |
java.lang.String |
getParameter(java.lang.String name) |
Returns authentication parameter with the given name, if available.
|
java.lang.String |
getRealm() |
Returns authentication realm.
|
java.lang.String |
getSchemeName() |
Returns textual designation of the given authentication scheme.
|
boolean |
isComplete() |
Authentication process may involve a series of challenge-response exchanges.
|
boolean |
isConnectionBased() |
Tests if the authentication scheme is provides authorization on a per
connection basis instead of usual per request basis
|
protected void |
parseChallenge(org.apache.http.util.CharArrayBuffer buffer,
int beginIndex,
int endIndex) |
authenticate, getChallengeState, isProxy, processChallenge, toStringpublic NTLMScheme(NTLMEngine engine)
public NTLMScheme()
public java.lang.String getSchemeName()
AuthSchemepublic java.lang.String getParameter(java.lang.String name)
AuthSchemename - The name of the parameter to be returnedpublic java.lang.String getRealm()
AuthSchemenull.public boolean isConnectionBased()
AuthSchemetrue if the scheme is connection based, false
if the scheme is request based.protected void parseChallenge(org.apache.http.util.CharArrayBuffer buffer,
int beginIndex,
int endIndex)
throws MalformedChallengeException
parseChallenge in class AuthSchemeBaseMalformedChallengeExceptionpublic org.apache.http.Header authenticate(Credentials credentials, org.apache.http.HttpRequest request) throws AuthenticationException
AuthSchemeCredentials.credentials - The set of credentials to be used for athenticationrequest - The request being authenticatedAuthenticationException - if authorization string cannot
be generated due to an authentication failurepublic boolean isComplete()
AuthSchemetrue if the authentication process has been completed,
false otherwise.