com.trackstudio.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 com.trackstudio.app.adapter.Adapter
getDescription, init
 

Method Detail

authorizeImpl

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

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-2008 TrackStudio, Ltd. All Rights Reserved.