|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.commons.httpclient.auth.AuthSchemeBase
|
+--org.apache.commons.httpclient.auth.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(String challenge)
Constructor for the NTLM authentication scheme. |
|
| Method Summary | |
String |
authenticate(Credentials credentials,
String method,
String uri)
Produces NTLM authorization string for the given set of Credentials. |
static String |
authenticate(NTCredentials credentials,
String challenge)
Create a NTLM authorization string for the given challenge and NT credentials. |
String |
getID()
Returns a String identifying the authentication challenge. |
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. |
| Methods inherited from class org.apache.commons.httpclient.auth.AuthSchemeBase |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public NTLMScheme(String challenge)
throws MalformedChallengeException
challenge - The authentication challengeMalformedChallengeException - is thrown if the authentication challenge
is malformed| Method Detail |
public String getSchemeName()
ntlmpublic String getRealm()
null.nullpublic String getID()
Additionally, the ID should take into account any changes to the authentication challenge and return a different value when appropriate. For example when the realm changes in basic authentication it should be considered a different authentication attempt and a different value should be returned.
public String getParameter(String name)
There are no valid parameters for NTLM authentication so this method always returns null.
name - The name of the parameter to be returned
public static String authenticate(NTCredentials credentials,
String challenge)
throws AuthenticationException
challenge - The challenge.credentials - NTCredentialsAuthenticationException - is thrown if authentication fails
public String authenticate(Credentials credentials,
String method,
String uri)
throws AuthenticationException
Credentials.credentials - The set of credentials to be used for athenticationmethod - Method name is ignored by the NTLM authentication schemeuri - URI is ignored by the NTLM authentication schemeAuthenticationException - if authorization string cannot
be generated due to an authentication failure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||