public abstract class CustomNTLMAuthScheme extends Object implements org.apache.commons.httpclient.auth.AuthScheme
| Constructor and Description |
|---|
CustomNTLMAuthScheme()
Default constructor for the NTLM authentication scheme.
|
CustomNTLMAuthScheme(String challenge)
Constructor for the NTLM authentication scheme.
|
| Modifier and Type | Method and Description |
|---|---|
String |
authenticate(org.apache.commons.httpclient.Credentials credentials,
org.apache.commons.httpclient.HttpMethod method)
Produces NTLM authorization string for the given set of
Credentials. |
String |
authenticate(org.apache.commons.httpclient.Credentials credentials,
String method,
String uri)
Unsupported.
|
static String |
authenticate(org.apache.commons.httpclient.NTCredentials credentials,
String challenge)
Unsupported.
|
static String |
authenticate(org.apache.commons.httpclient.NTCredentials credentials,
String challenge,
String charset)
Unsupported.
|
String |
getID()
Unsupported.
|
abstract String |
getNTLMVersion()
Unsupported.
|
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 CustomNTLMAuthScheme()
public CustomNTLMAuthScheme(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(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 malformedpublic boolean isComplete()
isComplete in interface org.apache.commons.httpclient.auth.AuthSchemepublic String getSchemeName()
getSchemeName in interface org.apache.commons.httpclient.auth.AuthSchemepublic String getRealm()
getRealm in interface org.apache.commons.httpclient.auth.AuthSchemepublic 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 boolean isConnectionBased()
isConnectionBased in interface org.apache.commons.httpclient.auth.AuthSchemepublic static String authenticate(org.apache.commons.httpclient.NTCredentials credentials, String challenge) throws org.apache.commons.httpclient.auth.AuthenticationException
org.apache.commons.httpclient.auth.AuthenticationExceptionpublic static String authenticate(org.apache.commons.httpclient.NTCredentials credentials, String challenge, String charset) throws org.apache.commons.httpclient.auth.AuthenticationException
org.apache.commons.httpclient.auth.AuthenticationExceptionpublic abstract String getNTLMVersion()
public 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 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.AuthSchemecredentials - 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–2024 Apache Software Foundation. All rights reserved.