gran.app.adapter
Interface AuthAdapter

All Superinterfaces:
Adapter
All Known Implementing Classes:
LDAPAuthAdapter, LoggingAuthAdapter, NTLMAuthAdapter, SimpleAuthAdapter

public interface AuthAdapter
extends Adapter


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.
 
Methods inherited from interface gran.app.adapter.Adapter
getDescription, init
 

Method Detail

authorizeImpl

public boolean authorizeImpl(java.lang.String userId,
                             java.lang.String password,
                             boolean result)
                      throws GranException
TrackStudio call this method to authorize user

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
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

Throws:
GranException


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