AzurePostgresqlAuthenticationPlugin Class
- java.
lang. Object - com.
azure. identity. extensions. jdbc. postgresql. AzurePostgresqlAuthenticationPlugin
- com.
Implements
public class AzurePostgresqlAuthenticationPlugin implements org.postgresql.plugin.AuthenticationPlugin
The authentication plugin that enables authentication with Microsoft Entra ID.
Constructor Summary
Constructor | Description |
---|---|
AzurePostgresqlAuthenticationPlugin(Properties properties) |
Constructor with properties. |
Method Summary
Modifier and Type | Method and Description |
---|---|
char[] |
getPassword(AuthenticationRequestType type)
Callback method to provide the password to use for authentication. |
Methods inherited from java.lang.Object
Constructor Details
AzurePostgresqlAuthenticationPlugin
public AzurePostgresqlAuthenticationPlugin(Properties properties)
Constructor with properties.
Parameters:
Method Details
getPassword
public char[] getPassword(AuthenticationRequestType type)
Callback method to provide the password to use for authentication.
Parameters:
<p>AzurePostgresqlAuthenticationPlugin is used as an extension to
perform authentication with Microsoft Entra ID, the value here is CLEARTEXT_PASSWORD.</p>
When PostgreSQL client trying to connect with PostgreSQL server:
1. Client will send startup packet to server, the server will return the AuthenticationRequestType it accepts,
If the username is used to perform Microsoft Entra authentication, the server will return CLEARTEXT_PASSWORD.
2. Client will do authentication (until AuthenticationOk).
Returns:
Throws:
Applies to
Azure SDK for Java
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente las Cuestiones de GitHub como mecanismo de retroalimentación para el contenido y lo sustituiremos por un nuevo sistema de retroalimentación. Para más información, consulta:Enviar y ver comentarios de