Record Class OcspResponse.SingleResponse
java.lang.Object
java.lang.Record
zeroecho.pkix.ocsp.OcspResponse.SingleResponse
- Record Components:
certId- the certificate identifierstatus- the certificate statusthisUpdate- the time the status is known correctnextUpdate- the time newer information will be available, if present
- Enclosing interface:
OcspResponse
-
Constructor Summary
ConstructorsConstructorDescriptionSingleResponse(CertId certId, CertStatus status, Instant thisUpdate, Optional<Instant> nextUpdate) Creates an instance of aSingleResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptioncertId()Returns the value of thecertIdrecord component.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 thenextUpdaterecord component.status()Returns the value of thestatusrecord component.Returns the value of thethisUpdaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SingleResponse
public SingleResponse(CertId certId, CertStatus status, Instant thisUpdate, Optional<Instant> nextUpdate) Creates an instance of aSingleResponserecord class.- Parameters:
certId- the value for thecertIdrecord componentstatus- the value for thestatusrecord componentthisUpdate- the value for thethisUpdaterecord componentnextUpdate- the value for thenextUpdaterecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
certId
-
status
-
thisUpdate
Returns the value of thethisUpdaterecord component.- Returns:
- the value of the
thisUpdaterecord component
-
nextUpdate
Returns the value of thenextUpdaterecord component.- Returns:
- the value of the
nextUpdaterecord component
-