com.trackstudio.app.adapter.auth
Class LoggingAuthAdapter

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

public class LoggingAuthAdapter
extends java.lang.Object
implements AuthAdapter

Logging Authentication Adapter


Constructor Summary
LoggingAuthAdapter()
           
 
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)
          Does 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

LoggingAuthAdapter

public LoggingAuthAdapter()
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
Does 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.