net.pleso.auth.server
Interface IAuthProvider


public interface IAuthProvider

Interface of auth results provider. Check database or other source for authentication results. Must be implemented externally.


Method Summary
 void fillConnectionInfo(UserInfo user)
          Fills connection properties into user information (database, host, etc.).
 java.lang.String[] getAuthClasses(java.util.Properties authProps)
          Returns a array of classes to which the user has access.
 

Method Detail

getAuthClasses

java.lang.String[] getAuthClasses(java.util.Properties authProps)
                                  throws AuthenticationException
Returns a array of classes to which the user has access. Generates exception if user don't has access to data.

Parameters:
authProps - authentication properties
Returns:
array of classes to which the user has access
Throws:
AuthenticationException

fillConnectionInfo

void fillConnectionInfo(UserInfo user)
Fills connection properties into user information (database, host, etc.).

Parameters:
user - user information


Copyright © 2006-2007 pleso.net crew All Rights Reserved.