Compartir vía


AzureMysqlAuthenticationPlugin Class

  • java.lang.Object
    • com.azure.identity.extensions.jdbc.mysql.AzureMysqlAuthenticationPlugin

Implements

com.mysql.cj.protocol.AuthenticationPlugin<com.mysql.cj.protocol.a.NativePacketPayload>

public class AzureMysqlAuthenticationPlugin
implements com.mysql.cj.protocol.AuthenticationPlugin<com.mysql.cj.protocol.a.NativePacketPayload>

The authentication plugin that enables authentication with Microsoft Entra ID.

Constructor Summary

Constructor Description
AzureMysqlAuthenticationPlugin()

Default constructor of AzureMysqlAuthenticationPlugin.

Method Summary

Modifier and Type Method and Description
void destroy()
String getProtocolPluginName()
void init(Protocol<NativePacketPayload> protocol)
void init(Protocol<NativePacketPayload> protocol, MysqlCallbackHandler callbackHandler)
boolean isReusable()
boolean nextAuthenticationStep(NativePacketPayload fromServer, List<NativePacketPayload> toServer)
boolean requiresConfidentiality()

Does this plugin require the connection itself to be confidential (i.e.

void setAuthenticationParameters(String username, String password)

Methods inherited from java.lang.Object

Constructor Details

AzureMysqlAuthenticationPlugin

public AzureMysqlAuthenticationPlugin()

Default constructor of AzureMysqlAuthenticationPlugin.

Method Details

destroy

public void destroy()

getProtocolPluginName

public String getProtocolPluginName()

init

public void init(Protocol protocol)

Parameters:

protocol

init

public void init(Protocol protocol, MysqlCallbackHandler callbackHandler)

Parameters:

protocol
callbackHandler

isReusable

public boolean isReusable()

nextAuthenticationStep

public boolean nextAuthenticationStep(NativePacketPayload fromServer, List toServer)

Parameters:

fromServer
toServer

requiresConfidentiality

public boolean requiresConfidentiality()

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.

Returns:

true if secure connection is required

setAuthenticationParameters

public void setAuthenticationParameters(String username, String password)

Parameters:

username
password

Applies to