@NotThreadSafe public class NTLMScheme extends AuthSchemeBase
| Constructor and Description |
|---|
NTLMScheme(NTLMEngine engine) |
| Modifier and Type | Method and Description |
|---|---|
Header |
authenticate(Credentials credentials,
HttpRequest request)
Produces an authorization string for the given set of
Credentials. |
String |
getParameter(String name)
Returns authentication parameter with the given name, if available.
|
String |
getRealm()
Returns authentication realm.
|
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(CharArrayBuffer buffer,
int beginIndex,
int endIndex) |
authenticate, getChallengeState, isProxy, processChallenge, toStringpublic NTLMScheme(NTLMEngine engine)
public String getSchemeName()
AuthSchemepublic String getParameter(String name)
AuthSchemename - The name of the parameter to be returnedpublic String getRealm()
AuthSchemenull.public boolean isConnectionBased()
AuthSchemeprotected void parseChallenge(CharArrayBuffer buffer, int beginIndex, int endIndex) throws MalformedChallengeException
parseChallenge in class AuthSchemeBaseMalformedChallengeExceptionpublic Header authenticate(Credentials credentials, 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()
AuthSchemeCopyright © 1999–2013 The Apache Software Foundation. All rights reserved.