Record Class PHCFormatUtil.Entity

java.lang.Object
java.lang.Record
org.seppiko.commons.utils.crypto.PHCFormatUtil.Entity
Record Components:
id - The symbolic name for the function.
version - The algorithm version.
params - A parameter map.
salt - An encoding of the salt.
hash - An encoding of the hash output.
Enclosing class:
PHCFormatUtil

public static record PHCFormatUtil.Entity(String id, String version, Map<String,Object> params, String salt, String hash) extends Record
PHC String Entity
  • Constructor Details

    • Entity

      public Entity(String id, String version, Map<String,Object> params, String salt, String hash)
      Creates an instance of a Entity record class.
      Parameters:
      id - the value for the id record component
      version - the value for the version record component
      params - the value for the params record component
      salt - the value for the salt record component
      hash - the value for the hash record component
  • Method Details

    • equals

      public boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • params

      public Map<String,Object> params()
      Returns the value of the params record component.
      Returns:
      the value of the params record component
    • salt

      public String salt()
      Returns the value of the salt record component.
      Returns:
      the value of the salt record component
    • hash

      public String hash()
      Returns the value of the hash record component.
      Returns:
      the value of the hash record component