Fractional
A GENERALIZED TIME carrying an exact fractional second. Produced only by decoding or from a sub-second Instant; a whole-second value is always a SecondsCapped instead.
Properties
Indicates whether this timestamp uses UTC TIME or GENERALIZED TIME.
Fractional-second digits. Matches FRACTIONAL_SECONDS regex: one or more digits. Every digit is significant and preserved, including leading and trailing zeros and an all-zero fraction: "05" (0.05 s) ≠ "5" (0.5 s), "120" is kept verbatim rather than normalized to "12", and "000" is kept rather than dropped to ensure even faulty encodings are round-tripped. Although cursed, certificates with such time encodings exist in practice.
The timestamp value only, truncated to Instant's nanosecond resolution. For SecondsCapped this is whole-second; for Fractional it reflects the decoded fraction only up to nanoseconds.
Functions
Convenience function to directly get the DER-encoded representation of the implementing object
Exception-free version of encodeToDer
Encodes the implementing object into an A
Exception-free version of Asn1Encodable.encodeToTlv
shorthand for Asn1Element.prettyPrint, hence, a call to this function encodes this encodable to an Asn1Element, holds it in memory, pretty prints it, and discards it. This characteristic may be relevant in memory-constrained environments.
Returns a fresh instance of a SecondsCapped version of this Asn1Time.
Creates a new implicitly tagged ASN.1 Element from this ASN.1 Element. NOTE: The TagClass of the provided tag will be used! If you want the result to have TagClass.CONTEXT_SPECIFIC, also invoke tag withClass TagClass.CONTEXT_SPECIFIC!. If a CONSTRUCTED Tag is applied to an ASN.1 Primitive, the CONSTRUCTED bit is overridden and set to zero
Creates a new implicitly tagged ASN.1 Element from this ASN.1 Structure. If the provided template's tagClass is not set, the class of the resulting structure defaults to TagClass.CONTEXT_SPECIFIC. If a CONSTRUCTED Tag is applied to an ASN.1 Primitive, the CONSTRUCTED bit is overridden and set to zero
Creates a new implicitly tagged ASN.1 Element from this ASN.1 Element. Sets the class of the resulting structure to TagClass.CONTEXT_SPECIFIC