AzureMysqlAuthenticationPlugin Class
- java.
lang. Object - com.
azure. identity. extensions. jdbc. mysql. AzureMysqlAuthenticationPlugin
- com.
Implements
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 Azure |
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. |
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
Parameters:
init
public void init(Protocol
Parameters:
isReusable
public boolean isReusable()
nextAuthenticationStep
public boolean nextAuthenticationStep(NativePacketPayload fromServer, List
Parameters:
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:
setAuthenticationParameters
public void setAuthenticationParameters(String username, String password)
Parameters:
Applies to
Azure SDK for Java