public class NTLMScheme extends AuthSchemeBase
Please note that the NTLM scheme requires an external
NTLMEngine
implementation to function!
For details please refer to
this document.
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 . |
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(CharArrayBuffer buffer,
int pos,
int len) |
isProxy, processChallenge, toString
public NTLMScheme(NTLMEngine engine)
public java.lang.String getSchemeName()
AuthScheme
public java.lang.String getParameter(java.lang.String name)
AuthScheme
name
- The name of the parameter to be returnedpublic java.lang.String getRealm()
AuthScheme
null
.public boolean isConnectionBased()
AuthScheme
protected void parseChallenge(CharArrayBuffer buffer, int pos, int len) throws MalformedChallengeException
parseChallenge
in class AuthSchemeBase
MalformedChallengeException
public Header authenticate(Credentials credentials, HttpRequest request) throws AuthenticationException
AuthScheme
Credentials
.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()
AuthScheme