gran.app.adapter
Interface AuthAdapter
- All Superinterfaces:
- Adapter
- All Known Implementing Classes:
- LDAPAuthAdapter, LoggingAuthAdapter, SimpleAuthAdapter
- public interface AuthAdapter
- extends Adapter
Method Summary |
boolean |
authorizeImpl(User user,
java.lang.String password,
boolean result)
TrackStudio call this method to authorize user |
void |
changePasswordImpl(User user,
java.lang.String password)
Called when user change password. |
authorizeImpl
public boolean authorizeImpl(User user,
java.lang.String password,
boolean result)
throws GranException
- TrackStudio call this method to authorize user
- Parameters:
user
- - loaded (by login) user form GR_USERpassword
- - entered password
- Returns:
- true for correct password, false otherwise.
- Throws:
GranException
changePasswordImpl
public void changePasswordImpl(User user,
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-2004 TrackStudio, Ltd. All Rights Reserved.