corelib.security
Interface SecurityManager

All Known Implementing Classes:
JdbcSecurityManager

public interface SecurityManager

This interface defines methods for access to a security service. A security service must provide two mechanisms: authentication and permissions management. Authentication consist to identify a user and enable him (or not) connecting to the considered system. The management of permissions allows, once the user authenticated, him to have an access (or not) to resources.

In the current version of the Ellipse framework, only authentication is supported. But a future version of the framework will add the concepts of permissions. The Ellipse framework provides the JdbcSecurityManager class : this is, of course, an implementation of this interface that use a relational database to store the security informations.

Since:
0.3.6
Author:
Dominique Liard
See Also:
JdbcSecurityManager, RoleManager, UserManager

Method Summary
 void closeSession()
          Close the session with the considered security service.
 RoleManager getRoleManager()
          Returns the role manager associated to this security manager.
 UserManager getUserManager()
          Returns the user manager associated to this security manager.
 void openSession()
          Open a session to the considered security service.
 

Method Detail

openSession

void openSession()
                 throws SecurityManagerException
Open a session to the considered security service.

Throws:
SecurityManagerException - Thrown when connection to the security service cannot be established.

closeSession

void closeSession()
                  throws SecurityManagerException
Close the session with the considered security service.

Throws:
SecurityManagerException - Thrown when connection to the security service cannot be closed.

getRoleManager

RoleManager getRoleManager()
Returns the role manager associated to this security manager. A role manager provided methods to manage roles.

Returns:
The role manager associated to this security manager.

getUserManager

UserManager getUserManager()
Returns the user manager associated to this security manager. A user manager provided methods to manage users.

Returns:
The user manager associated to this security manager.


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.