|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.EwsJCIFSNTLMScheme
public class EwsJCIFSNTLMScheme
This is a reimplementation of HTTPClient 3.x's
org.apache.commons.httpclient.auth.NTLMScheme.
It will basically use JCIFS (v1.3.15) in order to provide added support for
NTLMv2 (instead of trying to create its own Type, 2 and 3 messages).
This class has to be registered manually with HTTPClient before setting
NTCredentials: AuthPolicy.registerAuthScheme(AuthPolicy.NTLM,
JCIFS_NTLMScheme.class);
Will not work with HttpClient 4.x which requires AuthEngine to be overriden instead of AuthScheme.
| Constructor Summary | |
|---|---|
EwsJCIFSNTLMScheme()
|
|
| Method Summary | |
|---|---|
String |
authenticate(org.apache.commons.httpclient.Credentials credentials,
org.apache.commons.httpclient.HttpMethod method)
|
String |
authenticate(org.apache.commons.httpclient.Credentials credentials,
String method,
String uri)
|
String |
getID()
|
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 EwsJCIFSNTLMScheme()
throws org.apache.commons.httpclient.auth.AuthenticationException
org.apache.commons.httpclient.auth.AuthenticationException| Method Detail |
|---|
public String authenticate(org.apache.commons.httpclient.Credentials credentials,
org.apache.commons.httpclient.HttpMethod method)
throws org.apache.commons.httpclient.auth.AuthenticationException
authenticate in interface org.apache.commons.httpclient.auth.AuthSchemeorg.apache.commons.httpclient.auth.AuthenticationException
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 getID()
getID in interface org.apache.commons.httpclient.auth.AuthSchemepublic String getParameter(String name)
There are no valid parameters for NTLM authentication so this method always returns null.
getParameter in interface org.apache.commons.httpclient.auth.AuthSchemename - The name of the parameter to be returned
public String getRealm()
null.
getRealm in interface org.apache.commons.httpclient.auth.AuthSchemenullpublic String getSchemeName()
getSchemeName in interface org.apache.commons.httpclient.auth.AuthSchementlmpublic boolean isComplete()
isComplete in interface org.apache.commons.httpclient.auth.AuthSchemepublic boolean isConnectionBased()
isConnectionBased in interface org.apache.commons.httpclient.auth.AuthScheme
public void processChallenge(String challenge)
throws org.apache.commons.httpclient.auth.MalformedChallengeException
processChallenge in interface org.apache.commons.httpclient.auth.AuthSchemechallenge - the challenge string
org.apache.commons.httpclient.auth.MalformedChallengeException - is thrown if the authentication challenge is malformed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||