Package com.impossibl.postgres.utils
Class MD5Authentication
- java.lang.Object
-
- com.impossibl.postgres.utils.MD5Authentication
-
public class MD5Authentication extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MD5Authentication()
-
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
-
-
-
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 fromuser
- Username to generate token fromsalt
- Salt to generate token from- Returns:
- MD5 authentication token
-
-