gran.app.adapter.auth
Class LoggingAuthAdapter

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

public class LoggingAuthAdapter
extends java.lang.Object
implements AuthAdapter


Constructor Summary
LoggingAuthAdapter()
           
 
Method Summary
 boolean authorizeImpl(java.lang.String userId, java.lang.String password, boolean result)
          TrackStudio call this method to authorize user
 void changePasswordImpl(java.lang.String userId, java.lang.String password)
          Called when user change password.
 java.lang.String getDescription()
          Get description of adapter as plain text
 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()
Description copied from interface: Adapter
Get description of adapter as plain text

Specified by:
getDescription in interface Adapter

authorizeImpl

public boolean authorizeImpl(java.lang.String userId,
                             java.lang.String password,
                             boolean result)
                      throws GranException
Description copied from interface: AuthAdapter
TrackStudio call this method to authorize user

Specified by:
authorizeImpl in interface AuthAdapter
Parameters:
userId - - loaded (by login) user's id bean GR_USER
password - - entered password
Returns:
true for correct password, false otherwise.
Throws:
GranException

changePasswordImpl

public void changePasswordImpl(java.lang.String userId,
                               java.lang.String password)
                        throws GranException
Description copied from interface: AuthAdapter
Called when user change password. If adapter does not support this functionality, they should throw GranException or simple do nothing. This method also useful for security policy implementation

Specified by:
changePasswordImpl in interface AuthAdapter
Throws:
GranException


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