Class PasswordInfo
- java.lang.Object
-
- pl.edu.icm.unity.stdext.credential.pass.PasswordInfo
-
public class PasswordInfo extends Object
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
Constructors Modifier Constructor Description protectedPasswordInfo()PasswordInfo(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getHash()PasswordHashMethodgetMethod()Map<String,Object>getMethodParams()byte[]getSalt()DategetTime()
-
-
-
Constructor Detail
-
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 Detail
-
getHash
public byte[] getHash()
-
getSalt
public byte[] getSalt()
-
getTime
public Date getTime()
-
getMethod
public PasswordHashMethod getMethod()
-
-