Class IteratedHashPasswordSpec

    • Field Detail

      • hash

        private final byte[] hash
      • iterationCount

        private final int iterationCount
    • Constructor Detail

      • IteratedHashPasswordSpec

        public IteratedHashPasswordSpec​(byte[] hash,
                                        int iterationCount)
        Construct new instance.
        Parameters:
        hash - the password hash
        iterationCount - the iteration count or cost
    • Method Detail

      • getHash

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

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

        public int hashCode()
        Overrides:
        hashCode in class Object