public class NTLMv2Scheme extends Object implements org.apache.commons.httpclient.auth.AuthScheme
Constructor and Description |
---|
NTLMv2Scheme() |
Modifier and Type | Method and Description |
---|---|
String |
authenticate(org.apache.commons.httpclient.Credentials credentials,
org.apache.commons.httpclient.HttpMethod httpMethod)
Produces NTLM authorization string for the given set of
Credentials . |
String |
authenticate(org.apache.commons.httpclient.Credentials credentials,
String method,
String uri)
Deprecated.
|
String |
getID()
Deprecated.
|
String |
getParameter(String s)
Not used with NTLM.
|
String |
getRealm()
Not used with NTLM.
|
String |
getSchemeName()
Returns textual designation of the NTLM authentication scheme.
|
boolean |
isComplete()
Tests if the NTLM authentication process has been completed.
|
boolean |
isConnectionBased()
NTLM is connection based.
|
void |
processChallenge(String challenge)
Processes the NTLM challenge.
|
public void processChallenge(String challenge) throws org.apache.commons.httpclient.auth.MalformedChallengeException
processChallenge
in interface org.apache.commons.httpclient.auth.AuthScheme
challenge
- the challenge stringorg.apache.commons.httpclient.auth.MalformedChallengeException
- is thrown if the authentication challenge
is malformedpublic String getSchemeName()
getSchemeName
in interface org.apache.commons.httpclient.auth.AuthScheme
ntlm
public String getParameter(String s)
getParameter
in interface org.apache.commons.httpclient.auth.AuthScheme
public String getRealm()
getRealm
in interface org.apache.commons.httpclient.auth.AuthScheme
@Deprecated public String getID()
getID
in interface org.apache.commons.httpclient.auth.AuthScheme
public boolean isConnectionBased()
isConnectionBased
in interface org.apache.commons.httpclient.auth.AuthScheme
public boolean isComplete()
isComplete
in interface org.apache.commons.httpclient.auth.AuthScheme
@Deprecated public String authenticate(org.apache.commons.httpclient.Credentials credentials, String method, String uri)
authenticate
in interface org.apache.commons.httpclient.auth.AuthScheme
credentials
- user credentialsmethod
- method nameuri
- URIpublic String authenticate(org.apache.commons.httpclient.Credentials credentials, org.apache.commons.httpclient.HttpMethod httpMethod) throws org.apache.commons.httpclient.auth.AuthenticationException
Credentials
.authenticate
in interface org.apache.commons.httpclient.auth.AuthScheme
credentials
- The set of credentials to be used for authenticationhttpMethod
- The method being authenticatedorg.apache.commons.httpclient.auth.InvalidCredentialsException
- if authentication credentials
are not valid or not applicable for this authentication schemeorg.apache.commons.httpclient.auth.AuthenticationException
- if authorization string cannot
be generated due to an authentication failureCopyright © 2001–2020 MickaĆ«l Guessant. All rights reserved.