Record Class AccountRefiller.Challenge
java.lang.Object
java.lang.Record
fr.univ_eiffel.legotools.factory.api.AccountRefiller.Challenge
- Record Components:
data_prefix- Préfixe des données à utiliser.hash_prefix- Préfixe que le hash résultant doit matcher.
- Enclosing class:
AccountRefiller
public static record AccountRefiller.Challenge(String data_prefix, String hash_prefix)
extends Record
Structure représentant un défi cryptographique reçu du serveur.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedata_prefixrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehash_prefixrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Challenge
Creates an instance of aChallengerecord class.- Parameters:
data_prefix- the value for thedata_prefixrecord componenthash_prefix- the value for thehash_prefixrecord component
-
-
Method Details
-
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. -
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). -
data_prefix
Returns the value of thedata_prefixrecord component.- Returns:
- the value of the
data_prefixrecord component
-
hash_prefix
Returns the value of thehash_prefixrecord component.- Returns:
- the value of the
hash_prefixrecord component
-