| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private String | |
| public static String | |
| private RSAPrivateKey | |
| protected Protocol | |
| private String | |
| private byte[] | |
| private MysqlCallbackHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | destroy()
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. |
| public String | getProtocolPluginName()
Implements com. Returns the client-side name that the MySQL server uses on the wire for this plugin. |
| public void | init(Protocol<NativePacketPayload>
the protocol instance prot, MysqlCallbackHandler a callback handler to provide additional information to the authentication provider cbh)Overrides default com. Initializes this plugin with a direct Protocol reference and a generic |
| private void | |
| private void | |
| public boolean | |
| private void | |
| 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)Implements com. Process authentication handshake data from server and optionally produce data to be sent back to the server. |
| public boolean | requiresConfidentiality()
Implements com. Does this plugin require the connection itself to be confidential (i.e. tls/ssl)...Highly recommended to return "true" for plugins that return the credentials in the clear. |
| public void | reset()
Overrides default com. Resets the authentication steps sequence. |
| public void | setAuthenticationParameters(String
user name user, String user password password)Implements com. This method called from Connector/J before first nextAuthenticationStep call. |
| public void | setSourceOfAuthData(String
the authentication plugin that is source of the authentication data sourceOfAuthData)Overrides default com. Connector/J uses this method to identify the source of the authentication data, as an authentication plugin name, that will be available to the next authentication step(s). |
| configFingerprint | back to summary |
|---|---|
| private String configFingerprint | |
| configKeyFile | back to summary |
|---|---|
| private String configKeyFile | |
| configSecurityTokenFile | back to summary |
|---|---|
| private String configSecurityTokenFile | |
| PLUGIN_NAME | back to summary |
|---|---|
| public static String PLUGIN_NAME | |
| privateKey | back to summary |
|---|---|
| private RSAPrivateKey privateKey | |
| protocol | back to summary |
|---|---|
| protected Protocol<NativePacketPayload> protocol | |
| sourceOfAuthData | back to summary |
|---|---|
| private String sourceOfAuthData | |
| token | back to summary |
|---|---|
| private byte[] token | |
| usernameCallbackHandler | back to summary |
|---|---|
| private MysqlCallbackHandler usernameCallbackHandler | |
| AuthenticationOciClient | back to summary |
|---|---|
| public AuthenticationOciClient() | |
| destroy | back to summary |
|---|---|
| public void destroy() 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.
| |
| getProtocolPluginName | back to summary |
|---|---|
| public String getProtocolPluginName() 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, MysqlCallbackHandler cbh) Overrides default com. Doc from com. Initializes this plugin with a direct Protocol reference and a generic
| |
| initializePrivateKey | back to summary |
|---|---|
| private void initializePrivateKey() | |
| initializeToken | back to summary |
|---|---|
| private void initializeToken() | |
| isReusable | back to summary |
|---|---|
| public boolean isReusable() Implements com.
| |
| loadOciConfig | back to summary |
|---|---|
| private void loadOciConfig() | |
| nextAuthenticationStep | back to summary |
|---|---|
| public boolean nextAuthenticationStep(NativePacketPayload fromServer, List<NativePacketPayload> toServer) 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.
| |
| requiresConfidentiality | back to summary |
|---|---|
| public boolean requiresConfidentiality() Implements com. Doc from com. Does this plugin require the connection itself to be confidential (i.e. tls/ssl)...Highly recommended to return "true" for plugins that return the credentials in the clear.
| |
| reset | back to summary |
|---|---|
| public void reset() Overrides default com. Doc from com. Resets the authentication steps sequence.
| |
| setAuthenticationParameters | back to summary |
|---|---|
| public void setAuthenticationParameters(String user, String password) Implements com. Doc from com. This method called from Connector/J before first nextAuthenticationStep call. Values of user and password parameters are passed from those in NativeAuthenticationProvider#changeUser() or NativeAuthenticationProvider#connect(). 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. | |
| setSourceOfAuthData | back to summary |
|---|---|
| public void setSourceOfAuthData(String sourceOfAuthData) Overrides default com. Doc from com. Connector/J uses this method to identify the source of the authentication data, as an authentication plugin name, that will be available to the next authentication step(s). The source of the authentication data in the first iteration will always be the sever-side default authentication plugin name. In the following iterations this depends on the client-side default authentication plugin or on the successive Protocol::AuthSwitchRequest that may have been received in the meantime. Authentication plugin implementation can use this information to decide if the data coming from the server is useful to them or not. | |