Class AzureIdentityPostgresqlAuthenticationPlugin

java.lang.Object
com.azure.identity.providers.postgresql.AzureIdentityPostgresqlAuthenticationPlugin
All Implemented Interfaces:
org.postgresql.plugin.AuthenticationPlugin

public class AzureIdentityPostgresqlAuthenticationPlugin extends Object implements org.postgresql.plugin.AuthenticationPlugin
The authentication plugin that enables authentication with Azure AD.
  • Constructor Details

    • AzureIdentityPostgresqlAuthenticationPlugin

      public AzureIdentityPostgresqlAuthenticationPlugin(Properties properties)
      Constructor with properties.
      Parameters:
      properties - the properties.
  • Method Details

    • getPassword

      public char[] getPassword(org.postgresql.plugin.AuthenticationRequestType art) throws org.postgresql.util.PSQLException
      Get the password.
      Specified by:
      getPassword in interface org.postgresql.plugin.AuthenticationPlugin
      Parameters:
      art - the authentication request type.
      Returns:
      the password.
      Throws:
      org.postgresql.util.PSQLException - when an error occurs.