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 TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.hash()Returns the value of thehashrecord component.final 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.toString()Rewrite toStringversion()Returns the value of theversionrecord component.
-
Constructor Details
-
Entity
Creates an instance of aEntityrecord class.
-
-
Method Details
-
toString
Rewrite toString -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
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
-