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