org.jaffa.security
Class JDBCSecurityPlugin

java.lang.Object
  extended byorg.jaffa.security.JDBCSecurityPlugin
All Implemented Interfaces:
IJdbcSecurityPlugin

public class JDBCSecurityPlugin
extends Object
implements IJdbcSecurityPlugin

JDBCSecurityPlugin.java

Version:
1.1
Author:
maheshd

Constructor Summary
JDBCSecurityPlugin()
          Creates new JDBCSecurityPlugin
 
Method Summary
static void clearCache()
          Flush the cached list of security roles
 void freeConnection(Connection connection)
          This method will be invoked before returning a Connection back to the connection pool.
 void newConnection(Connection connection)
          This method will be invoked after a new Connection object is obtained from a connection pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCSecurityPlugin

public JDBCSecurityPlugin()
Creates new JDBCSecurityPlugin

Method Detail

newConnection

public void newConnection(Connection connection)
                   throws SQLException
Description copied from interface: IJdbcSecurityPlugin
This method will be invoked after a new Connection object is obtained from a connection pool. An implementing class can add all the logic pertaining to user security in this method.

Specified by:
newConnection in interface IJdbcSecurityPlugin
Parameters:
connection - The new Connection object from the pool.
Throws:
SQLException - if any error occurs.

freeConnection

public void freeConnection(Connection connection)
                    throws SQLException
Description copied from interface: IJdbcSecurityPlugin
This method will be invoked before returning a Connection back to the connection pool. An implementing class will undo the changes made by the newConnection() method.

Specified by:
freeConnection in interface IJdbcSecurityPlugin
Parameters:
connection - The Connection object to be returned back to the pool.
Throws:
SQLException - if any error occurs.

clearCache

public static void clearCache()
Flush the cached list of security roles



Copyright © 2002-2004 JAFFA Project.