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

    Represents a SEQUENCE OF PKI objects in ASN.1.

    A SEQUENCE contains an ordered collection of objects, which may be of different types. This class provides SEQUENCE-specific ASN.1 encoding and comparison methods.

    Type Parameters

    • T extends PkiBase<any> = any

      The type of PKI objects contained in this sequence

    Hierarchy (View Summary)

    Indexable

    • [n: number]: T
    Index

    Constructors

    • Type Parameters

      Parameters

      • arrayLength: number

      Returns PkiSequence<T>

    • Type Parameters

      Parameters

      • ...items: T[]

      Returns PkiSequence<T>

    Properties

    maxSize?: number

    Accessors

    Methods

    • Compares this sequence with another for equality. Two sequences are considered equal if they have the same length and all corresponding items are equal in the same order.

      Parameters

      Returns boolean

      true if the sequences are equal, false otherwise

    • 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

    • Returns a human-readable string representation of this sequence. Joins all child elements with commas.

      Returns string

      A comma-separated string of child elements