Module seppiko.commons.utils
Package org.seppiko.commons.utils.crypto
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.hash()Returns the value of thehashrecord component.inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.params()Returns the value of theparamsrecord component.salt()Returns the value of thesaltrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Entity
Creates an instance of aEntityrecord class.
-
-
Method Details
-
equals
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 withObjects::equals(Object,Object). -
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. -
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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-
salt
Returns the value of thesaltrecord component.- Returns:
- the value of the
saltrecord component
-
hash
Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-