Package io.keikai.axyra.sheets
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);nullwhen the signature embeds no certificatealgorithm- the signature algorithm, e.g."RSA-SHA256"or"ECDSA-P256-SHA256"; the raw algorithm URI when the algorithm is outside the supported setsignedAt- the signer-asserted signing time as recorded in the signature (ISO-8601, e.g.2026-01-02T03:04:05Z);nullwhen 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 outcomedetail- a human-readable explanation forSignatureInfo.Status.INVALID/SignatureInfo.Status.UNSUPPORTEDoutcomes (e.g. which part's digest mismatched);nullforSignatureInfo.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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumVerification outcome of a package signature. -
Constructor Summary
ConstructorsConstructorDescriptionSignatureInfo(String signerName, String algorithm, String signedAt, SignatureInfo.Status status, String detail) Creates an instance of aSignatureInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmrecord component.detail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.signedAt()Returns the value of thesignedAtrecord component.Returns the value of thesignerNamerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SignatureInfo
public SignatureInfo(String signerName, String algorithm, String signedAt, SignatureInfo.Status status, String detail) Creates an instance of aSignatureInforecord class.- Parameters:
signerName- the value for thesignerNamerecord componentalgorithm- the value for thealgorithmrecord componentsignedAt- the value for thesignedAtrecord componentstatus- the value for thestatusrecord componentdetail- the value for thedetailrecord component
-
-
Method Details
-
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. -
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. -
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). -
signerName
Returns the value of thesignerNamerecord component.- Returns:
- the value of the
signerNamerecord component
-
algorithm
Returns the value of thealgorithmrecord component.- Returns:
- the value of the
algorithmrecord component
-
signedAt
Returns the value of thesignedAtrecord component.- Returns:
- the value of the
signedAtrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-