Package com.impossibl.postgres.utils
Class MD5Authentication
- java.lang.Object
-
- com.impossibl.postgres.utils.MD5Authentication
-
public class MD5Authentication extends Object
-
-
Constructor Summary
Constructors Constructor Description MD5Authentication()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
encode(String password, String user, byte[] salt)
Generates an authentication token compatible with PostgreSQL's MD5 scheme
-
-
-
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 fromuser
- Username to generate token fromsalt
- Salt to generate token from- Returns:
- MD5 authentication token
-
-