类 NativeAuthenticationProvider
- java.lang.Object
-
- com.mysql.cj.protocol.a.NativeAuthenticationProvider
-
- 所有已实现的接口:
AuthenticationProvider<NativePacketPayload>
public class NativeAuthenticationProvider extends Object implements AuthenticationProvider<NativePacketPayload>
-
-
构造器概要
构造器 构造器 说明 NativeAuthenticationProvider()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidchangeUser(String user, String pass, String db)Re-authenticates as the given user and passwordvoidconnect(String user, String pass, String db)Initialize communications with the MySQL server.ExceptionInterceptorgetExceptionInterceptor()voidinit(Protocol<NativePacketPayload> prot, PropertySet propSet, ExceptionInterceptor excInterceptor)
-
-
-
方法详细资料
-
init
public void init(Protocol<NativePacketPayload> prot, PropertySet propSet, ExceptionInterceptor excInterceptor)
- 指定者:
init在接口中AuthenticationProvider<NativePacketPayload>
-
connect
public void connect(String user, String pass, String db)
Initialize communications with the MySQL server. Handles logging on, and handling initial connection errors.- 指定者:
connect在接口中AuthenticationProvider<NativePacketPayload>- 参数:
user- user namepass- passworddb- database name
-
getExceptionInterceptor
public ExceptionInterceptor getExceptionInterceptor()
-
changeUser
public void changeUser(String user, String pass, String db)
Re-authenticates as the given user and password- 指定者:
changeUser在接口中AuthenticationProvider<NativePacketPayload>- 参数:
user- user namepass- passworddb- database name
-
-