org.mule.transport.http.ntlm
Class NTLMScheme

java.lang.Object
  extended by org.mule.transport.http.ntlm.NTLMScheme
All Implemented Interfaces:
AuthScheme

public class NTLMScheme
extends Object
implements AuthScheme

Reimplements NTLMScheme using JCIFS org.apache.commons.httpclient.auth.NTLMScheme.

This class has to be registered manually in order to be used: AuthPolicy.registerAuthScheme(AuthPolicy.NTLM, NTLMScheme.class);


Constructor Summary
NTLMScheme()
           
 
Method Summary
 String authenticate(Credentials credentials, HttpMethod method)
           
 String authenticate(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

NTLMScheme

public NTLMScheme()
Method Detail

authenticate

public String authenticate(Credentials credentials,
                           HttpMethod method)
                    throws AuthenticationException
Specified by:
authenticate in interface AuthScheme
Throws:
AuthenticationException

authenticate

public String authenticate(Credentials credentials,
                           String method,
                           String uri)
                    throws AuthenticationException
Specified by:
authenticate in interface AuthScheme
Throws:
AuthenticationException

getID

public String getID()
Specified by:
getID in interface AuthScheme

getParameter

public String getParameter(String name)
Returns the authentication parameter with the given name, if available.

There are no valid parameters for NTLM authentication so this method

always returns null.

Specified by:
getParameter in interface AuthScheme
Parameters:
name - The name of the parameter to be returned
Returns:
the parameter with the given name

getRealm

public String getRealm()
The concept of an authentication realm is not supported by the NTLM authentication scheme. Always returns null.

Specified by:
getRealm in interface AuthScheme
Returns:
null

getSchemeName

public String getSchemeName()
Returns textual designation of the NTLM authentication scheme.

Specified by:
getSchemeName in interface AuthScheme
Returns:
ntlm

isComplete

public boolean isComplete()
Tests if the NTLM authentication process has been completed.

Specified by:
isComplete in interface AuthScheme
Returns:
true if Basic authorization has been processed, false otherwise.

isConnectionBased

public boolean isConnectionBased()
Returns true. NTLM authentication scheme is connection based.

Specified by:
isConnectionBased in interface AuthScheme
Returns:
true.

processChallenge

public void processChallenge(String challenge)
                      throws MalformedChallengeException
Processes the NTLM challenge.

Specified by:
processChallenge in interface AuthScheme
Parameters:
challenge - the challenge string
Throws:
MalformedChallengeException - is thrown if the authentication challenge is malformed


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.