Record Class ScepService.CaCertificateResponse
java.lang.Object
java.lang.Record
zeroecho.pki.server.scep.ScepService.CaCertificateResponse
- Record Components:
contentType- RFC 8894 media typebody- certificates-only CMS bytes
- Enclosing class:
ScepService
-
Constructor Summary
ConstructorsConstructorDescriptionCaCertificateResponse(String contentType, byte[] body) Validates and copies the response body. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]body()Copies the response.Returns the value of thecontentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
CaCertificateResponse
Validates and copies the response body.
-
-
Method Details
-
body
public byte[] body()Copies the response.- Returns:
- independent encoded certificate set
-
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). -
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-