public abstract class CustomNTLMAuthScheme
extends java.lang.Object
implements org.apache.commons.httpclient.auth.AuthScheme
Constructor and Description |
---|
CustomNTLMAuthScheme()
Default constructor for the NTLM authentication scheme.
|
CustomNTLMAuthScheme(java.lang.String challenge)
Constructor for the NTLM authentication scheme.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
authenticate(org.apache.commons.httpclient.Credentials credentials,
org.apache.commons.httpclient.HttpMethod method)
Produces NTLM authorization string for the given set of
Credentials . |
java.lang.String |
authenticate(org.apache.commons.httpclient.Credentials credentials,
java.lang.String method,
java.lang.String uri)
Unsupported.
|
static java.lang.String |
authenticate(org.apache.commons.httpclient.NTCredentials credentials,
java.lang.String challenge)
Unsupported.
|
static java.lang.String |
authenticate(org.apache.commons.httpclient.NTCredentials credentials,
java.lang.String challenge,
java.lang.String charset)
Unsupported.
|
java.lang.String |
getID()
Unsupported.
|
abstract java.lang.String |
getNTLMVersion()
Unsupported.
|
java.lang.String |
getParameter(java.lang.String name)
Returns the authentication parameter with the given name, if available.
|
java.lang.String |
getRealm()
The concept of an authentication realm is not supported by the NTLM
authentication scheme.
|
java.lang.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(java.lang.String challenge)
Processes the NTLM challenge.
|
public CustomNTLMAuthScheme()
public CustomNTLMAuthScheme(java.lang.String challenge) throws org.apache.commons.httpclient.auth.MalformedChallengeException
challenge
- The authentication challengeorg.apache.commons.httpclient.auth.MalformedChallengeException
- is thrown if the authentication challenge is malformedpublic void processChallenge(java.lang.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 boolean isComplete()
isComplete
in interface org.apache.commons.httpclient.auth.AuthScheme
public java.lang.String getSchemeName()
getSchemeName
in interface org.apache.commons.httpclient.auth.AuthScheme
public java.lang.String getRealm()
getRealm
in interface org.apache.commons.httpclient.auth.AuthScheme
public java.lang.String getID()
getID
in interface org.apache.commons.httpclient.auth.AuthScheme
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface org.apache.commons.httpclient.auth.AuthScheme
name
- The name of the parameter to be returnedpublic boolean isConnectionBased()
isConnectionBased
in interface org.apache.commons.httpclient.auth.AuthScheme
public static java.lang.String authenticate(org.apache.commons.httpclient.NTCredentials credentials, java.lang.String challenge) throws org.apache.commons.httpclient.auth.AuthenticationException
org.apache.commons.httpclient.auth.AuthenticationException
public static java.lang.String authenticate(org.apache.commons.httpclient.NTCredentials credentials, java.lang.String challenge, java.lang.String charset) throws org.apache.commons.httpclient.auth.AuthenticationException
org.apache.commons.httpclient.auth.AuthenticationException
public abstract java.lang.String getNTLMVersion()
public java.lang.String authenticate(org.apache.commons.httpclient.Credentials credentials, java.lang.String method, java.lang.String uri) throws org.apache.commons.httpclient.auth.AuthenticationException
authenticate
in interface org.apache.commons.httpclient.auth.AuthScheme
org.apache.commons.httpclient.auth.AuthenticationException
public java.lang.String authenticate(org.apache.commons.httpclient.Credentials credentials, org.apache.commons.httpclient.HttpMethod method) 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 athenticationmethod
- 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 © 2005-2021 Apache Software Foundation. All Rights Reserved.