Class Hierarchy Previous Next Index
Interface COM.cloudscape.authentication.Interface.MessageAuthenticationScheme
- public interface MessageAuthenticationScheme
Copyright © 2000, Informix Software, Inc. All rights reserved.
postConnect(Connection, TargetDescription)
- Post-connect refresh request callback.
preConnect(TargetDescription)
- Pre-connect refresh request callback.
preConnect
public void preConnect(TargetDescription target) throws AuthenticationException
Pre-connect refresh request callback.
Called at the source for a refresh request before
a JDBC connection is opened. Allows applications
to authenticate requests and/or set the refresh user.
This call does not disable any authentication on the
subsequent JDBC connection.
- Throws:
- AuthenticationException - abort the refresh
postConnect
public void postConnect(java.sql.Connection conn,
TargetDescription target) throws java.sql.SQLException, AuthenticationException
Post-connect refresh request callback.
Called at the source for a refresh request after
a JDBC connection is opened and before any work from
the target is applied.
Allows applications to authenticate requests using
data with the source database.
The passed in JDBC connection is identical to one passed into
a work unit execution by getCurrentConnection(). Thus it
is not in auto commit mode, auto commit mode can not be set
and commit or rollback cannot be called. If this method returns
then a commit is performed on the connection. If an exception is
thrown then any work performed by the connection will be rolled
back and the connection will be closed.
- Throws:
- java.sql.SQLException - abort the refresh
- AuthenticationException - abort the refresh
Class Hierarchy Previous Next Index