Record Class AttestationResponse
java.lang.Object
java.lang.Record
com.suse.coco.module.pvattest.model.AttestationResponse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theattestationResponseContentrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionAttestationResponse(String attestationResponseContent) Creates an instance of aAttestationResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattestationResponseContentrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfailed()final inthashCode()Returns a hash code value for this object.booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
attestationResponseContent
The field for theattestationResponseContentrecord component.
-
-
Constructor Details
-
AttestationResponse
Creates an instance of aAttestationResponserecord class.- Parameters:
attestationResponseContent- the value for theattestationResponseContentrecord component
-
-
Method Details
-
succeeded
public boolean succeeded()- Returns:
- true if attestation response has succeeded
-
failed
public boolean failed()- Returns:
- true if attestation response has failed
-
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). -
attestationResponseContent
Returns the value of theattestationResponseContentrecord component.- Returns:
- the value of the
attestationResponseContentrecord component
-