Package io.jans.lock.trace.crypto
Class TraceTime
java.lang.Object
io.jans.lock.trace.crypto.TraceTime
Renders and parses the TRACE receipt timestamp (design ยง9): an RFC 3339 UTC string
with exactly three fractional digits and a
Z suffix, for example
2026-06-11T00:41:02.123Z.
Instant.toString() is not used because it omits the fraction when the millisecond part is
zero, which would change the receipt-hash input.- Author:
- Yuriy Movchan
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatMillis(long epochMs) static longparseMillis(String text)
-
Method Details
-
formatMillis
- Returns:
epochMsasyyyy-MM-dd'T'HH:mm:ss.SSS'Z'in UTC
-
parseMillis
- Returns:
- epoch milliseconds for a value produced by
formatMillis(long) - Throws:
IllegalArgumentException- if the text is not in the exact three-digit-fraction UTC form
-