|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcorelib.security.JdbcSecurityManager
public class JdbcSecurityManager
This security manager (see interface corelib.security.SercurityManager) use a relational database to store the security informations. Actually two relational database management systems (also known as RDBMS) are supported : Apache Derby ou Sun MySql. In future versions, other RDBMS will be supported. The JDBC API is used by this implementation to provide RDBMS access.
To specify the used RDBMS, you must pass a data source that describe the JDBC connection. A data source is defined by the JdbcSecurityManager.DataSource.
SecurityManager,
DataSource| Constructor Summary | |
|---|---|
JdbcSecurityManager(java.sql.Connection connection)
This constructor produces an instance of security manager that has based on a JDBC connection. |
|
JdbcSecurityManager(DataSource dataSource)
This constructor produces an instance of security manager that has based on a JDBC data source. |
|
| Method Summary | |
|---|---|
void |
closeSession()
Close the session with the considered security service. |
java.sql.Connection |
getConnection()
Return the underlying JDBC connection to the database. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcSecurityManager(DataSource dataSource)
throws SecurityManagerException
dataSource - The JDBC data source
SecurityManagerException - Thrown if the system cannot connect to the database.public JdbcSecurityManager(java.sql.Connection connection)
connection - The JDBC connection to use.| Method Detail |
|---|
public void openSession()
throws SecurityManagerException
SecurityManager
openSession in interface SecurityManagerSecurityManagerException - Thrown when connection to the security
service cannot be established.
public void closeSession()
throws SecurityManagerException
SecurityManager
closeSession in interface SecurityManagerSecurityManagerException - Thrown when connection to the security
service cannot be closed.public RoleManager getRoleManager()
SecurityManager
getRoleManager in interface SecurityManagerpublic UserManager getUserManager()
SecurityManager
getUserManager in interface SecurityManagerpublic java.sql.Connection getConnection()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||