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 String
The field for thehashingKey
record component.private final String
The field for thehashingValue
record component. -
Constructor Summary
ConstructorsConstructorDescriptionBasicRequestTokenData
(String hashingKey, String hashingValue) Creates an instance of aBasicRequestTokenData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehashingKey
record component.Returns the value of thehashingValue
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
hashingKey
The field for thehashingKey
record component. -
hashingValue
The field for thehashingValue
record component.
-
-
Constructor Details
-
BasicRequestTokenData
Creates an instance of aBasicRequestTokenData
record class.- Parameters:
hashingKey
- the value for thehashingKey
record componenthashingValue
- the value for thehashingValue
record 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 thehashingKey
record component.- Returns:
- the value of the
hashingKey
record component
-
hashingValue
Returns the value of thehashingValue
record component.- Returns:
- the value of the
hashingValue
record component
-