ObjectIdentifier

@Serializable(with = ObjectIdSerializer::class)
class ObjectIdentifier constructor(val nodes: UInt) : Asn1Encodable<Asn1Primitive> (source)

ASN.1 OBJECT IDENTIFIER featuring the most cursed encoding of numbers known to man, which probably surfaced due to an ungodly combination of madness, cruelty and a twisted sense of humour. Courtesy of what were most probably tormented souls to begin with.

Parameters

nodes

OID Tree nodes passed in order (e.g. 1u, 2u, 96u, …)

Throws

if less than two nodes are supplied, the first node is >2 or the second node is >39

Constructors

Link copied to clipboard
constructor(oid: String)
constructor(vararg nodes: UInt)

Types

Link copied to clipboard

Properties

Link copied to clipboard

Cursed encoding of OID nodes. A sacrifice of pristine numbers requested by past gods of the netherrealm

Link copied to clipboard
@Transient
val nodes: UIntArray

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
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