AzureIdentityMysqlAuthenticationPlugin Class
- java.
lang. Object - com.
azure. identity. providers. mysql. AzureIdentityMysqlAuthenticationPlugin
- com.
Implements
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 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
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:
init
public void init(Protocol<NativePacketPayload> protocol, MysqlCallbackHandler callbackHandler)
Parameters:
isReusable
public boolean isReusable()
nextAuthenticationStep
public boolean nextAuthenticationStep(NativePacketPayload fromServer, List<NativePacketPayload> toServer)
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: