Record Class SignatureInfo

java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.SignatureInfo
Record Components:
signerName - the subject Common Name of the signing certificate (or the full subject DN when the certificate has no CN); null when the signature embeds no certificate
algorithm - the signature algorithm, e.g. "RSA-SHA256" or "ECDSA-P256-SHA256"; the raw algorithm URI when the algorithm is outside the supported set
signedAt - the signer-asserted signing time as recorded in the signature (ISO-8601, e.g. 2026-01-02T03:04:05Z); null when not recorded. This value is part of the signed content but the clock is the signer's claim — it is not an independent timestamp.
status - the verification outcome
detail - a human-readable explanation for SignatureInfo.Status.INVALID / SignatureInfo.Status.UNSUPPORTED outcomes (e.g. which part's digest mismatched); null for SignatureInfo.Status.VALID

public record SignatureInfo(String signerName, String algorithm, String signedAt, SignatureInfo.Status status, String detail) extends Record
Validation report for one package digital signature — an OPC (ECMA-376 Part 2 §13) XML signature found in the workbook file when it was opened.

A read view returned by Workbook.signatures(). The engine verifies cryptographic integrity: every signed part digest and the signature value are checked against the certificate embedded in the signature. It deliberately does not evaluate certificate trust — no chain building, expiry or revocation checks; callers who need a trust decision must evaluate the signer certificate with their own PKI policy.

  • Constructor Details

    • SignatureInfo

      public SignatureInfo(String signerName, String algorithm, String signedAt, SignatureInfo.Status status, String detail)
      Creates an instance of a SignatureInfo record class.
      Parameters:
      signerName - the value for the signerName record component
      algorithm - the value for the algorithm record component
      signedAt - the value for the signedAt record component
      status - the value for the status record component
      detail - the value for the detail record component
  • Method Details

    • 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.
    • signerName

      public String signerName()
      Returns the value of the signerName record component.
      Returns:
      the value of the signerName record component
    • algorithm

      public String algorithm()
      Returns the value of the algorithm record component.
      Returns:
      the value of the algorithm record component
    • signedAt

      public String signedAt()
      Returns the value of the signedAt record component.
      Returns:
      the value of the signedAt record component
    • status

      public SignatureInfo.Status status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • detail

      public String detail()
      Returns the value of the detail record component.
      Returns:
      the value of the detail record component