Record Class BasicRequestTokenData
java.lang.Object
java.lang.Record
com.digicert.validation.challenges.BasicRequestTokenData
- Record Components:
hashingKey- The hashing key used to generate request tokens.hashingValue- The value to hash to generate request tokens.
- All Implemented Interfaces:
RequestTokenData
public record BasicRequestTokenData(String hashingKey, String hashingValue)
extends Record
implements RequestTokenData
An implementation of the
RequestTokenData interface to be used with
the BasicRequestTokenValidator.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thehashingKeyrecord component.private final StringThe field for thehashingValuerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBasicRequestTokenData(String hashingKey, String hashingValue) Creates an instance of aBasicRequestTokenDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehashingKeyrecord component.Returns the value of thehashingValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
hashingKey
The field for thehashingKeyrecord component. -
hashingValue
The field for thehashingValuerecord component.
-
-
Constructor Details
-
BasicRequestTokenData
Creates an instance of aBasicRequestTokenDatarecord class.- Parameters:
hashingKey- the value for thehashingKeyrecord componenthashingValue- the value for thehashingValuerecord 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). -
hashingKey
Returns the value of thehashingKeyrecord component.- Returns:
- the value of the
hashingKeyrecord component
-
hashingValue
Returns the value of thehashingValuerecord component.- Returns:
- the value of the
hashingValuerecord component
-