Record Class EstService.EnrollmentResult
java.lang.Object
java.lang.Record
zeroecho.pki.server.est.EstService.EnrollmentResult
- Record Components:
status- HTTP response statusbody- completed MIME-base64 CMS or empty for non-success responsesretryAfterSeconds- positive interval only for HTTP 202
- Enclosing class:
EstService
-
Constructor Summary
ConstructorsConstructorDescriptionEnrollmentResult(int status, byte[] body, Optional<Long> retryAfterSeconds) Validates response state and defensively copies the response body. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]body()Returns a defensive copy.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theretryAfterSecondsrecord component.intstatus()Returns the value of thestatusrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
EnrollmentResult
-
-
Method Details
-
body
public byte[] body()Returns a defensive copy.- Returns:
- independently owned response bytes
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
status
-
retryAfterSeconds
Returns the value of theretryAfterSecondsrecord component.- Returns:
- the value of the
retryAfterSecondsrecord component
-