Class MD5Authentication


  • public class MD5Authentication
    extends Object
    • Constructor Detail

      • MD5Authentication

        public MD5Authentication()
    • Method Detail

      • encode

        public static String encode​(String password,
                                    String user,
                                    byte[] salt)
        Generates an authentication token compatible with PostgreSQL's MD5 scheme
        Parameters:
        password - Password to generate token from
        user - Username to generate token from
        salt - Salt to generate token from
        Returns:
        MD5 authentication token