|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.httpclient.auth.NTLMScheme
public class NTLMScheme
An implementation of the Microsoft proprietary NTLM authentication scheme. For a detailed explanation of the NTLM scheme please see http://davenport.sourceforge.net/ntlm.html.
| Constructor Summary | |
|---|---|
NTLMScheme()
Default constructor for the NTLM authentication scheme. |
|
NTLMScheme(String challenge)
Constructor for the NTLM authentication scheme. |
|
| Method Summary | |
|---|---|
String |
authenticate(Credentials credentials,
HttpMethod method)
Produces NTLM authorization string for the given set of Credentials. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NTLMScheme()
public NTLMScheme(String challenge)
throws MalformedChallengeException
challenge - The authentication challenge
MalformedChallengeException - is thrown if the authentication challenge
is malformed| Method Detail |
|---|
public void processChallenge(String challenge)
throws MalformedChallengeException
processChallenge in interface AuthSchemechallenge - the challenge string
MalformedChallengeException - is thrown if the authentication challenge
is malformedpublic boolean isComplete()
isComplete in interface AuthSchemepublic String getSchemeName()
getSchemeName in interface AuthSchementlmpublic String getRealm()
null.
getRealm in interface AuthSchemenullpublic String getParameter(String name)
There are no valid parameters for NTLM authentication so this method always returns null.
getParameter in interface AuthSchemename - The name of the parameter to be returned
public boolean isConnectionBased()
isConnectionBased in interface AuthScheme
public String authenticate(Credentials credentials,
HttpMethod method)
throws AuthenticationException
Credentials.
authenticate in interface AuthSchemecredentials - The set of credentials to be used for athenticationmethod - The method being authenticated
InvalidCredentialsException - if authentication credentials
are not valid or not applicable for this authentication scheme
AuthenticationException - if authorization string cannot
be generated due to an authentication failure
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||