org.jboss.jca.adapters.jdbc.extensions.mysql
Class MySQLReauthPlugin

java.lang.Object
  extended by org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLReauthPlugin
All Implemented Interfaces:
ReauthPlugin

public class MySQLReauthPlugin
extends Object
implements ReauthPlugin

MySQL plugin for reauthentication

Author:
Jesper Pedersen

Constructor Summary
MySQLReauthPlugin()
          Default constructor
 
Method Summary
 void initialize(ClassLoader cl)
          Initialize
 void reauthenticate(Connection c, String userName, String password)
          Reauthenticate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQLReauthPlugin

public MySQLReauthPlugin()
Default constructor

Method Detail

initialize

public void initialize(ClassLoader cl)
                throws SQLException
Initialize

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

reauthenticate

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

Specified by:
reauthenticate in interface ReauthPlugin
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)