PKI-Lite - v1.0.8
    Preparing search index...

    Class PkiArray<T>Abstract

    Base class for arrays of PKI objects.

    Extends the native Array class with PKI-specific functionality including size limits, PEM encoding, and ASN.1 serialization capabilities.

    Type Parameters

    • T extends PkiBase<any>

      The type of PKI objects contained in this array

    Hierarchy (View Summary)

    Indexable

    • [n: number]: T
    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Type Parameters

      Parameters

      • arrayLength: number

      Returns PkiArray<T>

    • Type Parameters

      Parameters

      • ...items: T[]

      Returns PkiArray<T>

    Properties

    maxSize?: number

    Accessors

    Methods

    • Adds new PKI objects to the end of the array. Respects the maxSize limit if set.

      Parameters

      • ...items: T[]

        The PKI objects to add

      Returns number

      The new length of the array

      Error if adding items would exceed maxSize