Class IteratedSaltedHashPasswordSpec

    • Field Detail

      • hash

        private final byte[] hash
      • salt

        private final byte[] salt
      • iterationCount

        private final int iterationCount
    • Constructor Detail

      • IteratedSaltedHashPasswordSpec

        public IteratedSaltedHashPasswordSpec​(byte[] hash,
                                              byte[] salt,
                                              int iterationCount)
        Construct a new instance.
        Parameters:
        hash - the password hash bytes
        salt - the salt bytes
        iterationCount - the iteration count
    • Method Detail

      • getHash

        public byte[] getHash()
        Get a password hash bytes.
        Returns:
        the password hash
      • getSalt

        public byte[] getSalt()
        Get the salt bytes.
        Returns:
        the salt bytes
      • getIterationCount

        public int getIterationCount()
        Get the iteration count.
        Returns:
        the iteration count
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object