public class NTLMScheme extends Object implements 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(Credentials credentials,
HttpMethod method) |
String |
authenticate(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(Credentials credentials, HttpMethod method) throws AuthenticationException
authenticate
in interface AuthScheme
AuthenticationException
public String authenticate(Credentials credentials, String method, String uri) throws AuthenticationException
authenticate
in interface AuthScheme
AuthenticationException
public String getID()
getID
in interface AuthScheme
public String getParameter(String name)
getParameter
in interface AuthScheme
name
- The name of the parameter to be returnedpublic String getRealm()
null
.getRealm
in interface AuthScheme
null
public String getSchemeName()
getSchemeName
in interface AuthScheme
ntlm
public boolean isComplete()
isComplete
in interface AuthScheme
public boolean isConnectionBased()
isConnectionBased
in interface AuthScheme
public void processChallenge(String challenge) throws MalformedChallengeException
processChallenge
in interface AuthScheme
challenge
- the challenge stringMalformedChallengeException
- is thrown if the authentication challenge is malformedCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.