Class SaltHash


  • public class SaltHash
    extends java.lang.Object
    Envelope for holding the salt and hash together for convenience
    • Constructor Summary

      Constructors 
      Constructor Description
      SaltHash​(byte[] salt, byte[] hash)
      Public constructor
      SaltHash​(java.lang.String tuple)
      Public constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      byte[] getHash()
      Getter for the hash (digest) value
      byte[] getSalt()
      Getter for the salt value
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SaltHash

        public SaltHash​(byte[] salt,
                        byte[] hash)
        Public constructor
        Parameters:
        salt -
        hash -
      • SaltHash

        public SaltHash​(java.lang.String tuple)
        Public constructor
        Parameters:
        tuple -
    • Method Detail

      • getSalt

        public byte[] getSalt()
        Getter for the salt value
        Returns:
      • getHash

        public byte[] getHash()
        Getter for the hash (digest) value
        Returns:
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object