com.sibvisions.rad.server.security
Interface ISecurityManager

All Known Implementing Classes:
AbstractSecurityManager, DBSecurityManager, NtlmDBSecurityManager, XmlSecurityManager

public interface ISecurityManager

The ISecurityManager has methods to check the access of a user to a special application.


Method Summary
 void changePassword(ISession pSession)
          Changes the password for a user.
 IAccessController getAccessController(ISession pSession)
          Gets the access controller for a session.
 void logout(ISession pSession)
          Performs a manual or automatic logout.
 void release()
          Releases all used resources.
 void validateAuthentication(ISession pSession)
          Validates if a session has valid credentials to access an application.
 

Method Detail

validateAuthentication

void validateAuthentication(ISession pSession)
                            throws Exception
Validates if a session has valid credentials to access an application.

Parameters:
pSession - the session which needs access
Throws:
Exception - if the access is denied (invalid username or password, password needs to be changed, ...)

changePassword

void changePassword(ISession pSession)
                    throws Exception
Changes the password for a user.

Parameters:
pSession - the session which wants to change the password
Throws:
Exception - if it's not possible to change the password

logout

void logout(ISession pSession)
Performs a manual or automatic logout.

Parameters:
pSession - the session which performs the logout

getAccessController

IAccessController getAccessController(ISession pSession)
                                      throws Exception
Gets the access controller for a session. The controller handles the access to server side objects.

Parameters:
pSession - the session for which the access controller is needed
Returns:
the access controller or null if no access controller should be used
Throws:
Exception - if the access controller could not be created

release

void release()
Releases all used resources.



Copyright © 2009 SIB Visions GmbH. All Rights Reserved.