| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private AuthenticationLdapSaslClientPlugin. | |
| private CallbackHandler | |
| private boolean | |
| private static final String | |
| private static final String | |
| private String | |
| public static String | |
| private Protocol | |
| private SaslClient | |
| private Subject | |
| private String | |
| 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>
protocol instance prot)Overrides default com. We need direct Protocol reference because it isn't available from Connection before authentication complete. |
| 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 |
| public boolean | |
| 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. |
| authMech | back to summary |
|---|---|
| private AuthenticationLdapSaslClientPlugin. | |
| credentialsCallbackHandler | back to summary |
|---|---|
| private CallbackHandler credentialsCallbackHandler | |
| firstPass | back to summary |
|---|---|
| private boolean firstPass | |
| LDAP_SERVICE_NAME | back to summary |
|---|---|
| private static final String LDAP_SERVICE_NAME | |
| LOGIN_CONFIG_ENTRY | back to summary |
|---|---|
| private static final String LOGIN_CONFIG_ENTRY | |
| password | back to summary |
|---|---|
| private String password | |
| PLUGIN_NAME | back to summary |
|---|---|
| public static String PLUGIN_NAME | |
| protocol | back to summary |
|---|---|
| private Protocol<?> protocol | |
| saslClient | back to summary |
|---|---|
| private SaslClient saslClient | |
| subject | back to summary |
|---|---|
| private Subject subject | |
| user | back to summary |
|---|---|
| private String user | |
| usernameCallbackHandler | back to summary |
|---|---|
| private MysqlCallbackHandler usernameCallbackHandler | |
| AuthenticationLdapSaslClientPlugin | back to summary |
|---|---|
| public AuthenticationLdapSaslClientPlugin() | |
| 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) Overrides default com. Doc from com. We need direct Protocol reference because it isn't available from Connection before authentication complete.
| |
| 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
| |
| isReusable | back to summary |
|---|---|
| public boolean isReusable() Implements com.
| |
| 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. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final AuthenticationLdapSaslClientPlugin. | |
| private String | |
| private String | |
| public static final AuthenticationLdapSaslClientPlugin. | |
| public static final AuthenticationLdapSaslClientPlugin. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static AuthenticationLdapSaslClientPlugin. | |
| pack-priv String | |
| pack-priv String | |
| public static AuthenticationLdapSaslClientPlugin. | |
| public static AuthenticationLdapSaslClientPlugin. |
| GSSAPI | back to summary |
|---|---|
| public static final AuthenticationLdapSaslClientPlugin. | |
| mechName | back to summary |
|---|---|
| private String mechName | |
| saslServiceName | back to summary |
|---|---|
| private String saslServiceName | |
| SCRAM_SHA_1 | back to summary |
|---|---|
| public static final AuthenticationLdapSaslClientPlugin. | |
| SCRAM_SHA_256 | back to summary |
|---|---|
| public static final AuthenticationLdapSaslClientPlugin. | |
| AuthenticationMechanisms | back to summary |
|---|---|
| private AuthenticationMechanisms(String mechName, String serviceName) | |
| fromValue | back to summary |
|---|---|
| pack-priv static AuthenticationLdapSaslClientPlugin. | |
| getMechName | back to summary |
|---|---|
| pack-priv String getMechName() | |
| getSaslServiceName | back to summary |
|---|---|
| pack-priv String getSaslServiceName() | |
| valueOf | back to summary |
|---|---|
| public static AuthenticationLdapSaslClientPlugin. | |
| values | back to summary |
|---|---|
| public static AuthenticationLdapSaslClientPlugin. | |