public class NTLMScheme extends Object implements org.apache.commons.httpclient.auth.AuthScheme
NTLMScheme using JCIFS
org.apache.commons.httpclient.auth.NTLMScheme.
This class has to be registered manually in order to be used:
AuthPolicy.registerAuthScheme(AuthPolicy.NTLM, NTLMScheme.class);
| Constructor and Description |
|---|
NTLMScheme() |
| Modifier and Type | Method and Description |
|---|---|
String |
authenticate(org.apache.commons.httpclient.Credentials credentials,
org.apache.commons.httpclient.HttpMethod method) |
String |
authenticate(org.apache.commons.httpclient.Credentials credentials,
String method,
String uri) |
String |
getID() |
String |
getParameter(String name)
Returns the authentication parameter with the given name, if available.
|
String |
getRealm()
The concept of an authentication realm is not supported by the NTLM
authentication scheme.
|
String |
getSchemeName()
Returns textual designation of the NTLM authentication scheme.
|
boolean |
isComplete()
Tests if the NTLM authentication process has been completed.
|
boolean |
isConnectionBased()
Returns true.
|
void |
processChallenge(String challenge)
Processes the NTLM challenge.
|
public String authenticate(org.apache.commons.httpclient.Credentials credentials, org.apache.commons.httpclient.HttpMethod method) throws org.apache.commons.httpclient.auth.AuthenticationException
authenticate in interface org.apache.commons.httpclient.auth.AuthSchemeorg.apache.commons.httpclient.auth.AuthenticationExceptionpublic String authenticate(org.apache.commons.httpclient.Credentials credentials, String method, String uri) throws org.apache.commons.httpclient.auth.AuthenticationException
authenticate in interface org.apache.commons.httpclient.auth.AuthSchemeorg.apache.commons.httpclient.auth.AuthenticationExceptionpublic String getID()
getID in interface org.apache.commons.httpclient.auth.AuthSchemepublic String getParameter(String name)
getParameter in interface org.apache.commons.httpclient.auth.AuthSchemename - The name of the parameter to be returnedpublic String getRealm()
null.getRealm in interface org.apache.commons.httpclient.auth.AuthSchemenullpublic String getSchemeName()
getSchemeName in interface org.apache.commons.httpclient.auth.AuthSchementlmpublic boolean isComplete()
isComplete in interface org.apache.commons.httpclient.auth.AuthSchemepublic boolean isConnectionBased()
isConnectionBased in interface org.apache.commons.httpclient.auth.AuthSchemepublic void processChallenge(String challenge) throws org.apache.commons.httpclient.auth.MalformedChallengeException
processChallenge in interface org.apache.commons.httpclient.auth.AuthSchemechallenge - the challenge stringorg.apache.commons.httpclient.auth.MalformedChallengeException - is thrown if the authentication challenge is malformedCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.