Record Class OcspRequesterService.SignedRequest

java.lang.Object
java.lang.Record
zeroecho.pki.server.OcspRequesterService.SignedRequest
Record Components:
tbsRequest - canonical to-be-signed request DER
requestorName - canonical requestor-name DER
signatureAlgorithm - canonical signature algorithm identifier DER
signature - request signature bytes
certificates - bounded requester certificate chain
Enclosing class:
OcspRequesterService

public static record OcspRequesterService.SignedRequest(byte[] tbsRequest, byte[] requestorName, byte[] signatureAlgorithm, byte[] signature, List<byte[]> certificates) extends Record
Exact bounded cryptographic fields retained from one canonical request.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SignedRequest(byte[] tbsRequest, byte[] requestorName, byte[] signatureAlgorithm, byte[] signature, List<byte[]> certificates)
    Snapshots all security-sensitive input bytes.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<byte[]>
    Returns immutable defensive copies of the requester certificates.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    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 String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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

      public List<byte[]> certificates()
      Returns immutable defensive copies of the requester certificates.
      Returns:
      immutable list of copied certificate encodings
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.