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 Details Link icon

    • hashingKey Link icon

      private final String hashingKey
      The field for the hashingKey record component.
    • hashingValue Link icon

      private final String hashingValue
      The field for the hashingValue record component.
  • Constructor Details Link icon

    • BasicRequestTokenData Link icon

      public BasicRequestTokenData(String hashingKey, String hashingValue)
      Creates an instance of a BasicRequestTokenData record class.
      Parameters:
      hashingKey - the value for the hashingKey record component
      hashingValue - the value for the hashingValue record component
  • Method Details Link icon

    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hashingKey Link icon

      public String hashingKey()
      Returns the value of the hashingKey record component.
      Returns:
      the value of the hashingKey record component
    • hashingValue Link icon

      public String hashingValue()
      Returns the value of the hashingValue record component.
      Returns:
      the value of the hashingValue record component