setAuthenticationParameters
public void setAuthenticationParameters(java.lang.String user,
java.lang.String password)
This method called from cJ before first nextAuthenticationStep
call. Values of user and password parameters are passed from
those in MysqlIO.changeUser(String userName, String password,
String database) or MysqlIO.doHandshake(String user, String
password, String database).
Plugin should use these values instead of values from connection
properties because parent method may be a changeUser call which
saves user and password into connection only after successful
handshake.
- Specified by:
setAuthenticationParameters
in interface AuthenticationPlugin<NativePacketPayload>
- Overrides:
setAuthenticationParameters
in class MysqlNativePasswordPlugin
- Parameters:
user
- user name
password
- user password