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

    Class PkiBase<T>Abstract

    Base class for all PKI objects in the library.

    Provides common functionality for ASN.1 encoding/decoding, PEM formatting, DER serialization, and object comparison. All PKI structures extend this class to ensure consistent behavior across the library.

    Type Parameters

    • T extends object = any

      The specific PKI type that extends this base class

    Hierarchy (View Summary)

    Index

    Constructors

    • Type Parameters

      • T extends object = any

      Returns PkiBase<T>

    Accessors

    Methods

    • Compares this PKI object with another for equality. Two objects are considered equal if their DER encodings are identical.

      Parameters

      • other: PkiBase<any>

        The other PKI object to compare with

      Returns boolean

      true if the objects are equal, false otherwise

    • Parses this object as a different PKI type. Useful for converting between related PKI structures.

      Type Parameters

      • T

        The target type to parse as

      Parameters

      • type: ParseableAsn1<T>

        The target type constructor with parsing capabilities

      Returns T

      A new instance of the target type

    • Returns a human-readable string representation of this object. By default, returns the same as toString(), but subclasses can override for more user-friendly output.

      Returns string

      A human-readable string representation

    • Returns a string representation of this PKI object. Includes the type name and ASN.1 structure.

      Returns string

      A string representation for debugging