com.ibm.dse.applsrv.aa
Class SecurityJDBCPersistence

java.lang.Object
  |
  +--com.ibm.dse.applsrv.aa.SecurityJDBCPersistence

public class SecurityJDBCPersistence
extends java.lang.Object
implements SecurityPersistence, SecurityConstants

This class represents a JDBC persistence controller for the security objects.


Fields inherited from interface com.ibm.dse.applsrv.aa.SecurityConstants
ACTIVE_CONTEXTS, ALL_CONTEXTS, AUDIT_FILE, CBTF_TRACING, CONFIGURATION, CONFIGURATIONS_DATABASE, CONTEXT_ACTIVE, CONTEXT_DATABASE, CONTEXT_INACTIVE, CONTEXT_INVALID, CONTEXTS, CONTROLLER, DEFAULT_CONFIGURATIONS_DATABASE, DEFAULT_CONTEXT_DATABASE, DEFAULT_GROUPS_DATABASE, DEFAULT_RIGHTS_DATABASE, DEFAULT_ROLES_DATABASE, DEFAULT_SERVICES_DATABASE, DEFAULT_USER_DATABASE, ENCRYPTION, GLOBAL_CONTEXTS, GROUPS, GROUPS_DATABASE, INACTIVE_CONTEXTS, JDBC_DATABASE, JDBC_DRIVER, JDBC_MAX_DATA, JDBC_MAX_GROUPS, JDBC_MAX_HANDLER, JDBC_MAX_ID, JDBC_MAX_PASSWORD, JDBC_MAX_RIGHT_TIMES, JDBC_MAX_RIGHTS, JDBC_MAX_ROLE_TIMES, JDBC_MAX_ROLES, JDBC_MAX_USER_ID, JDBC_MAX_USERS, JDBC_PASSWORD, JDBC_URL, JDBC_USER_ID, LIMIT_DATABASE, LIMITS, LOGGING_HANDLER, LOGGING_OPTIONS, PERSIST_CONTEXTS, PERSISTENCE, QUERY_PASSWORDS, RIGHTS, RIGHTS_DATABASE, ROLES, ROLES_DATABASE, SECURITY_DIRECTORY, SECURITY_MANAGER, SERVICES, SERVICES_DATABASE, SPECIFIC_CONTEXTS, TEST_ADD_RIGHT_TO_USER, TEST_ADD_RIGHTS_TO_USER, TEST_AUDIT, TEST_CONTEXT_IDS, TEST_DISABLE_PERSISTENCE, TEST_EXPORT, TEST_GET_CONFIGURATION, TEST_GET_CONTEXTS, TEST_GET_GROUPS, TEST_GET_PASSWORD_ACCESS, TEST_GET_PERSISTENCE, TEST_GET_RIGHTS, TEST_GET_ROLES, TEST_GET_SERVICES, TEST_GET_UNIQUE_LOGON, TEST_GET_USERS, TEST_GROUP_IDS, TEST_IMPORT, TEST_IMPORT2, TEST_LOAD_CONFIGURATIONS, TEST_LOAD_CONTEXTS, TEST_LOAD_GROUPS, TEST_LOAD_RIGHTS, TEST_LOAD_ROLES, TEST_LOAD_SERVICES, TEST_LOAD_USERS, TEST_PERSISTENCE, TEST_QUERY_SM, TEST_REMOVE_ALL_RIGHTS_FROM_USER, TEST_RESET, TEST_RIGHT_IDS, TEST_ROLE_IDS, TEST_SAVE, TEST_SERVICE_IDS, TEST_SET_CONFIGURATION, TEST_SET_PASSWORD_ACCESS, TEST_SET_PERSISTENCE, TEST_SET_UNIQUE_LOGON, TEST_TEST1, TEST_TEST2, TEST_TEST3, TEST_TRACE, TEST_USER_IDS, TRACE_EXCEPTIONS, TRACE_FILE, TRACE_LOGGER, UNIQUE_LOGONS, USE_LIMITS, USER_DATABASE, USERS
 
Constructor Summary
SecurityJDBCPersistence()
          Create a new instance of this persistence controller.
 
Method Summary
 java.lang.String database()
          Return the name of this database.
protected  void finalize()
          Close the database connection whenever this object is about to be garbase collected.
 void initialize(Dictionary config)
          Initialize the persistor with the specified set of options.
 java.io.Serializable load()
          Return an object representing the current state of the persistent database.
 void save(java.io.Serializable db)
          Replace the persistent database with the in-memory copy.
 void shutdown()
          Shutdown this database.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityJDBCPersistence

public SecurityJDBCPersistence()
Create a new instance of this persistence controller.
Method Detail

database

public java.lang.String database()
Return the name of this database.
Specified by:
database in interface SecurityPersistence
Returns:
String - the name of this database.

finalize

protected void finalize()
                 throws java.lang.Throwable
Close the database connection whenever this object is about to be garbase collected.
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable - - finalization error.

initialize

public void initialize(Dictionary config)
                throws DSESecurityException
Initialize the persistor with the specified set of options.
Specified by:
initialize in interface SecurityPersistence
Parameters:
config - Dictionary - the configuration options.
Throws:
DSESecurityException - - database error.

load

public java.io.Serializable load()
                          throws DSESecurityException
Return an object representing the current state of the persistent database.
Specified by:
load in interface SecurityPersistence
Returns:
Serializable - the copy of the persistent database.
Throws:
DSESecurityException - - database error.

save

public void save(java.io.Serializable db)
          throws DSESecurityException
Replace the persistent database with the in-memory copy.
Specified by:
save in interface SecurityPersistence
Parameters:
db - Serializable - the in-memory database.
Throws:
DSESecurityException - - database error.

shutdown

public void shutdown()
Shutdown this database.
Specified by:
shutdown in interface SecurityPersistence
Tags copied from interface: SecurityPersistence
Throws:
DSESecurityException - - database error.