Record Class OcspRequesterService.SignedRequest
java.lang.Object
java.lang.Record
zeroecho.pki.server.OcspRequesterService.SignedRequest
- Record Components:
tbsRequest- canonical to-be-signed request DERrequestorName- canonical requestor-name DERsignatureAlgorithm- canonical signature algorithm identifier DERsignature- request signature bytescertificates- bounded requester certificate chain
- Enclosing class:
OcspRequesterService
-
Constructor Summary
ConstructorsConstructorDescriptionSignedRequest(byte[] tbsRequest, byte[] requestorName, byte[] signatureAlgorithm, byte[] signature, List<byte[]> certificates) Snapshots all security-sensitive input bytes. -
Method Summary
Modifier and TypeMethodDescriptionList<byte[]> Returns immutable defensive copies of the requester certificates.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]Returns a defensive copy of canonical requestor-name DER.byte[]Returns a defensive copy of the request signature.byte[]Returns a defensive copy of the signature algorithm identifier DER.byte[]Returns a defensive copy of canonical to-be-signed request DER.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SignedRequest
public SignedRequest(byte[] tbsRequest, byte[] requestorName, byte[] signatureAlgorithm, byte[] signature, List<byte[]> certificates) Snapshots all security-sensitive input bytes.
-
-
Method Details
-
tbsRequest
public byte[] tbsRequest()Returns a defensive copy of canonical to-be-signed request DER.- Returns:
- copied DER bytes
-
requestorName
public byte[] requestorName()Returns a defensive copy of canonical requestor-name DER.- Returns:
- copied DER bytes
-
signatureAlgorithm
public byte[] signatureAlgorithm()Returns a defensive copy of the signature algorithm identifier DER.- Returns:
- copied DER bytes
-
signature
public byte[] signature()Returns a defensive copy of the request signature.- Returns:
- copied signature bytes
-
certificates
Returns immutable defensive copies of the requester certificates.- Returns:
- immutable list of copied certificate encodings
-
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).
-