Class PasswordInfo


  • public class PasswordInfo
    extends java.lang.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 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()
      • getMethodParams

        public java.util.Map<java.lang.String,​java.lang.Object> getMethodParams()