org.jboss.jca.adapters.jdbc.spi.reauth
Interface ReauthPlugin

All Known Implementing Classes:
MySQLReauthPlugin

public interface ReauthPlugin

Define the SPI contract for a reauthentication plugin for the JDBC resource adapter. The implementing class must have a default constructor. The implementing class must be thread safe. Java bean properties can be set, using the supported types by the Java EE Connector Architecture specification.

Author:
Jesper Pedersen

Method Summary
 void initialize(ClassLoader cl)
          Initialize
 void reauthenticate(Connection c, String userName, String password)
          Reauthenticate
 

Method Detail

initialize

void initialize(ClassLoader cl)
                throws SQLException
Initialize

Parameters:
cl - The class loader which can be used for initialization
Throws:
SQLException - Thrown in case of an error

reauthenticate

void reauthenticate(Connection c,
                    String userName,
                    String password)
                    throws SQLException
Reauthenticate

Parameters:
c - The connection
userName - The user name
password - The password
Throws:
SQLException - Thrown in case of an error


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)