Asn1Time

@Serializable(with = CertTimeStampSerializer::class)
class Asn1Time(instant: Instant, formatOverride: Asn1Time.Format? = null) : Asn1Encodable<Asn1Primitive> (source)

ASN.1 TIME (required since GENERALIZED TIME and UTC TIME exist)

Parameters

instant

the timestamp to encode

formatOverride

to force either GENERALIZED TIME or UTC TIME

Constructors

Link copied to clipboard
constructor(instant: Instant, formatOverride: Asn1Time.Format? = null)

Types

Link copied to clipboard
Link copied to clipboard

Enum of supported Time formats

Properties

Link copied to clipboard

Indicates whether this timestamp uses UTC TIME or GENERALIZED TIME

Link copied to clipboard
val instant: Instant

Functions

Link copied to clipboard

Convenience function to directly get the DER-encoded representation of the implementing object

Link copied to clipboard

Exception-free version of encodeToDer

Link copied to clipboard
open fun encodeToDerSafe(): KmmResult<ByteArray>

Safe version of encodeToDer, wrapping the result into a KmmResult

Link copied to clipboard
open override fun encodeToTlv(): Asn1Primitive

Encodes the implementing object into an A

Link copied to clipboard

Exception-free version of encodeToTlv

Link copied to clipboard
open fun encodeToTlvSafe(): KmmResult<Asn1Primitive>

Safe version of encodeToTlv, wrapping the result into a KmmResult

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String