AzureIdentityMysqlAuthenticationPlugin Class

  • java.lang.Object
    • com.azure.identity.providers.mysql.AzureIdentityMysqlAuthenticationPlugin

Implements

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

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

The authentication plugin that enables authentication with Azure AD.

Constructor Summary

Constructor Description
AzureIdentityMysqlAuthenticationPlugin()

Default constructor of AzureIdentityMysqlAuthenticationPlugin.

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

AzureIdentityMysqlAuthenticationPlugin

public AzureIdentityMysqlAuthenticationPlugin()

Default constructor of AzureIdentityMysqlAuthenticationPlugin.

Method Details

destroy

public void destroy()

getProtocolPluginName

public String getProtocolPluginName()

init

public void init(Protocol<NativePacketPayload> protocol)

Parameters:

protocol

init

public void init(Protocol<NativePacketPayload> protocol, MysqlCallbackHandler callbackHandler)

Parameters:

protocol
callbackHandler

isReusable

public boolean isReusable()

nextAuthenticationStep

public boolean nextAuthenticationStep(NativePacketPayload fromServer, List<NativePacketPayload> 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