JDBC developers using PAM to communicate with a PAM-enabled Dynamic Server must implement the com.informix.jdbc.IfmxPAM interface. To do so, put the following on the class declaration line in a Java class file:
implements IfmxPAM
That Java class must then implement the IfmxPAM interface conforming to Java standards and the details provided above. The next step is to inform the JDBC driver what Java class has implemented the IfmxPAM interface. There are two ways to do this:
This method is typically used when connecting to a Dynamic Server using the DriverManager.getConnection (URL) approach.
This method is used when connecting to a Dynamic Server using the DataSource.getConnection() approach.
JDBC developers have a wide latitude in implementing the IfmxPAM interface. The following actions happen during authentication using PAM:
This process continues until either the user is authorized or the user is denied access. The Java developer or user can terminate the PAM authorization sequence by calling the IfxPAMResponse.setTerminateConnection() method with a value of TRUE.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]