Package co.ankatech.ankasecure.sdk.model
Class QualifiedTimestampInfo
java.lang.Object
co.ankatech.ankasecure.sdk.model.QualifiedTimestampInfo
Informational view of an embedded RFC 3161 qualified timestamp
(JAdES
sigTst) reported by a verification operation (PRD §60).
This block is purely informational: its presence, trust
status, or absence never affects the signature validity verdict
(valid). A stamped signature that verifies cryptographically is
valid == true regardless of whether the timestamp is trusted,
untrusted, revoked, expired, or exhibits a time anomaly.
Instances are immutable and thread-safe. They are populated from the
server verify response only when a qualified timestamp is present in the
verified JWS; otherwise the enclosing result's timestamp accessor returns
null.
- Since:
- 3.0.0
- Author:
- ANKATech Solutions Inc.
-
Constructor Summary
ConstructorsConstructorDescriptionQualifiedTimestampInfo(boolean present, String trustStatus, String genTime, String serialNumber, String policyOid) Creates an immutable qualified-timestamp view. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic QualifiedTimestampInfofrom(co.ankatech.secure.client.model.QualifiedTimestamp src) Maps a generated OpenAPIQualifiedTimestampto this public view.inthashCode()booleantoString()
-
Constructor Details
-
QualifiedTimestampInfo
public QualifiedTimestampInfo(boolean present, String trustStatus, String genTime, String serialNumber, String policyOid) Creates an immutable qualified-timestamp view.- Parameters:
present- whether a qualified timestamp was present in the JWStrustStatus- typed TSA trust outcome (e.g.VALID,UNTRUSTED,REVOKED,EXPIRED,TIME_ANOMALY); may benullgenTime- TSA-asserted generation time (ISO-8601); may benullwhen unparseableserialNumber- timestamp token serial number (decimal); may benullwhen unparseablepolicyOid- TSA policy OID (dotted-decimal); may benullwhen unparseable
-
-
Method Details
-
from
Maps a generated OpenAPIQualifiedTimestampto this public view.- Parameters:
src- the generated wire model; may benull- Returns:
- the mapped view, or
nullwhensrcisnull
-
isPresent
public boolean isPresent()- Returns:
trueif a qualified timestamp was present in the JWS
-
getTrustStatus
- Returns:
- typed TSA trust outcome (independent of the signature verdict);
may be
null
-
getGenTime
- Returns:
- TSA-asserted generation time (ISO-8601);
nullwhen unparseable
-
getSerialNumber
- Returns:
- timestamp token serial number (decimal);
nullwhen unparseable
-
getPolicyOid
- Returns:
- TSA policy OID (dotted-decimal);
nullwhen unparseable
-
toString
-
equals
-
hashCode
public int hashCode()
-