| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static String | |
| private CachingSha2PasswordPlugin. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | destroy()
Overrides com. Overrides default com. Called by the driver when this extension should release any resources it is holding and cleanup internally before the connection is closed. |
| protected byte[] | |
| public String | getProtocolPluginName()
Overrides com. Implements com. Returns the client-side name that the MySQL server uses on the wire for this plugin. |
| public void | init(Protocol<NativePacketPayload>
protocol instance prot)Overrides default com. We need direct Protocol reference because it isn't available from Connection before authentication complete. |
| public boolean | nextAuthenticationStep(NativePacketPayload
a buffer containing handshake data payload from
server (can be empty). fromServer, List<NativePacketPayload> list of buffers with data to be sent to the server
(the list can be empty, but buffers in the list
should contain data). toServer)Overrides com. Implements com. Process authentication handshake data from server and optionally produce data to be sent back to the server. |
| public void | reset()
Overrides default com. Resets the authentication steps sequence. |
| PLUGIN_NAME | back to summary |
|---|---|
| public static String PLUGIN_NAME Hides com. | |
| stage | back to summary |
|---|---|
| private CachingSha2PasswordPlugin. | |
| CachingSha2PasswordPlugin | back to summary |
|---|---|
| public CachingSha2PasswordPlugin() | |
| destroy | back to summary |
|---|---|
| public void destroy() Overrides com. Overrides default com. Doc from com. Called by the driver when this extension should release any resources it is holding and cleanup internally before the connection is closed.
| |
| encryptPassword | back to summary |
|---|---|
| protected byte[] encryptPassword() Overrides com.
| |
| getProtocolPluginName | back to summary |
|---|---|
| public String getProtocolPluginName() Overrides com. Implements com. Doc from com. Returns the client-side name that the MySQL server uses on the wire for this plugin. | |
| init | back to summary |
|---|---|
| public void init(Protocol<NativePacketPayload> prot) Overrides default com. Doc from com. We need direct Protocol reference because it isn't available from Connection before authentication complete.
| |
| nextAuthenticationStep | back to summary |
|---|---|
| public boolean nextAuthenticationStep(NativePacketPayload fromServer, List<NativePacketPayload> toServer) Overrides com. Implements com. Doc from com. Process authentication handshake data from server and optionally produce data to be sent back to the server. The driver will keep calling this method on each new server packet arrival until either an Exception is thrown (authentication failure, please use appropriate SQLStates) or the number of exchange iterations exceeded max limit or an OK packet is sent by server indicating that the connection has been approved. If, on return from this method, toServer is a non-empty list of buffers, then these buffers will be sent to the server in the same order and without any reads in between them. If toServer is an empty list, no data will be sent to server, driver immediately reads the next packet from server. In case of errors the method should throw Exception.
| |
| reset | back to summary |
|---|---|
| public void reset() Overrides default com. Doc from com. Resets the authentication steps sequence.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final CachingSha2PasswordPlugin. | |
| public static final CachingSha2PasswordPlugin. | |
| public static final CachingSha2PasswordPlugin. | |
| public static final CachingSha2PasswordPlugin. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CachingSha2PasswordPlugin. | |
| public static CachingSha2PasswordPlugin. |
| FAST_AUTH_COMPLETE | back to summary |
|---|---|
| public static final CachingSha2PasswordPlugin. | |
| FAST_AUTH_READ_RESULT | back to summary |
|---|---|
| public static final CachingSha2PasswordPlugin. | |
| FAST_AUTH_SEND_SCRAMBLE | back to summary |
|---|---|
| public static final CachingSha2PasswordPlugin. | |
| FULL_AUTH | back to summary |
|---|---|
| public static final CachingSha2PasswordPlugin. | |
| AuthStage | back to summary |
|---|---|
| private AuthStage() | |
| valueOf | back to summary |
|---|---|
| public static CachingSha2PasswordPlugin. | |
| values | back to summary |
|---|---|
| public static CachingSha2PasswordPlugin. | |