Class PasswordInfo
java.lang.Object
pl.edu.icm.unity.stdext.credential.pass.PasswordInfo
In DB representation of the credential state is a list of objects as the
one described in this class.
Object stores hash, salt and time as 1st level citizens. Additionally hashing method and its parameters are encoded in a map. The map should use method specific keys and simple objects only directly JSON serializable.
- Author:
- K. Benedyczak
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPasswordInfo(PasswordHashMethod method, byte[] hash, byte[] salt, Map<String, Object> methodParams) PasswordInfo(PasswordHashMethod method, byte[] hash, byte[] salt, Map<String, Object> methodParams, long time) -
Method Summary
-
Constructor Details
-
PasswordInfo
public PasswordInfo(PasswordHashMethod method, byte[] hash, byte[] salt, Map<String, Object> methodParams) -
PasswordInfo
public PasswordInfo(PasswordHashMethod method, byte[] hash, byte[] salt, Map<String, Object> methodParams, long time) -
PasswordInfo
protected PasswordInfo()
-
-
Method Details
-
getHash
public byte[] getHash() -
getSalt
public byte[] getSalt() -
getTime
-
getMethod
-
getMethodParams
-