Class MD5Authentication


  • public class MD5Authentication
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String encode​(java.lang.String password, java.lang.String user, byte[] salt)
      Generates an authentication token compatible with PostgreSQL's MD5 scheme
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MD5Authentication

        public MD5Authentication()
    • Method Detail

      • encode

        public static java.lang.String encode​(java.lang.String password,
                                              java.lang.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