Class EnvCredentialPlugin

  • All Implemented Interfaces:
    Supplier<Credential>, CredentialPlugin

    public class EnvCredentialPlugin
    extends Object
    implements CredentialPlugin
    Authentication using environment variable.

    default implementation use environment variable MARIADB_USER and MARIADB_PWD

    example : `jdbc:mariadb://host/db?credentialType=ENV`

    2 options `userKey` and `pwdKey` permits to indicate which environment variable to use.