com.trackstudio.app.adapter.auth
Class NTLMAuthAdapter

java.lang.Object
  extended by com.trackstudio.app.adapter.auth.NTLMAuthAdapter
All Implemented Interfaces:
Adapter, AuthAdapter

public class NTLMAuthAdapter
extends java.lang.Object
implements AuthAdapter

Implenments NTLM autorization


Constructor Summary
NTLMAuthAdapter()
           
 
Method Summary
 boolean authorizeImpl(java.lang.String userId, java.lang.String password, boolean result)
          Do authoriztion
 void changePasswordImpl(java.lang.String userId, java.lang.String password)
          Do nothing
 java.lang.String getDescription()
          Adapter's description
 boolean init()
          Initialize adapter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NTLMAuthAdapter

public NTLMAuthAdapter()
Method Detail

init

public boolean init()
Description copied from interface: Adapter
Initialize adapter. TrackStudio calls this method during startup.

Specified by:
init in interface Adapter
Returns:
true when adapter initialized, false otherwise.

getDescription

public java.lang.String getDescription()
Adapter's description

Specified by:
getDescription in interface Adapter
Returns:
adapter's description

authorizeImpl

public boolean authorizeImpl(java.lang.String userId,
                             java.lang.String password,
                             boolean result)
                      throws GranException
Do authoriztion

Specified by:
authorizeImpl in interface AuthAdapter
Parameters:
userId - loaded (by login) user's id
password - password
result - if true, does nothing and return true
Returns:
true for correct password, false otherwise.
Throws:
GranException

changePasswordImpl

public void changePasswordImpl(java.lang.String userId,
                               java.lang.String password)
                        throws GranException
Do nothing

Specified by:
changePasswordImpl in interface AuthAdapter
Parameters:
userId - loaded (by login) user's id
password - new password
Throws:
GranException


Copyright © 2002-2008 TrackStudio, Ltd. All Rights Reserved.