The com.ibm.db2.jcc.DB2Driver class extends the java.sql.Driver interface.
public static void changeDB2Password (String url,
String userid,
String oldPassword,
String newPassword)
throws java.sql.SQLException
Changes the password for accessing a data server that is specified by the url parameter, for the user that is specified by the userid parameter. This method can change an unexpired or expired password.
changeDB2Password is supported for IBM Data Server Driver for JDBC and SQLJ type 4 connectivity only.
changeDB2Password is not supported for connections to IBM Informix®.