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

    Represents a SET OF PKI objects in ASN.1.

    A SET contains an unordered collection of objects of the same type. This class provides SET-specific ASN.1 encoding and comparison methods.

    Type Parameters

    • T extends PkiBase<any> = any

      The type of PKI objects contained in this set

    Hierarchy (View Summary)

    Indexable

    • [n: number]: T
    Index

    Constructors

    • Type Parameters

      Parameters

      • arrayLength: number

      Returns PkiSet<T>

    • Type Parameters

      Parameters

      • ...items: T[]

      Returns PkiSet<T>

    Properties

    maxSize?: number

    Accessors

    Methods

    • Compares this set with another for equality. Two sets are considered equal if they have the same length and all corresponding items are equal.

      Parameters

      • other: PkiSet<T>

        The other set to compare with

      Returns boolean

      true if the sets 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 set. Joins all child elements with commas.

      Returns string

      A comma-separated string of child elements