Record Class AttestationRequest

java.lang.Object
java.lang.Record
com.suse.coco.module.pvattest.model.AttestationRequest

public record AttestationRequest(String base64AttestationRequest, String base64AttestationProtectionKey) extends Record
  • Field Details

    • base64AttestationRequest

      private final String base64AttestationRequest
      The field for the base64AttestationRequest record component.
    • base64AttestationProtectionKey

      private final String base64AttestationProtectionKey
      The field for the base64AttestationProtectionKey record component.
  • Constructor Details

    • AttestationRequest

      public AttestationRequest(String base64AttestationRequest, String base64AttestationProtectionKey)
      Creates an instance of a AttestationRequest record class.
      Parameters:
      base64AttestationRequest - the value for the base64AttestationRequest record component
      base64AttestationProtectionKey - the value for the base64AttestationProtectionKey record component
  • Method Details

    • succeeded

      public boolean succeeded()
      Returns:
      true if attestation request has succeeded
    • failed

      public boolean failed()
      Returns:
      true if attestation request has failed
    • toString

      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

      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

      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.
    • base64AttestationRequest

      public String base64AttestationRequest()
      Returns the value of the base64AttestationRequest record component.
      Returns:
      the value of the base64AttestationRequest record component
    • base64AttestationProtectionKey

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