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

    Status information for a timestamp request/response.

    PKIStatusInfo provides detailed information about the processing of a timestamp request, including success/failure status, optional descriptive text, and specific failure reasons when applicable.

    PKIStatusInfo ::= SEQUENCE { status PKIStatus, statusString PKIFreeText OPTIONAL, failInfo PKIFailureInfo OPTIONAL }

    // Success status
    const successStatus = new PKIStatusInfo({
    status: PKIStatus.GRANTED
    })

    // Failure status with details
    const failureStatus = new PKIStatusInfo({
    status: PKIStatus.REJECTION,
    statusString: new PKIFreeText({ texts: ['Invalid algorithm'] }),
    failInfo: PKIFailureInfo.BAD_ALG
    })

    if (statusInfo.isSuccess()) {
    console.log('Request was successful')
    } else {
    console.log('Request failed:', statusInfo.getStatusDescription())
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    failInfo?: PKIFailureInfo

    Optional specific failure information

    status: PKIStatus

    The status code indicating success or failure

    statusString?: PKIFreeText

    Optional human-readable status description

    Accessors

    • get pemHeader(): string

      Gets the PEM header name for this object type. Converts the class name to uppercase for use in PEM encoding.

      Returns string

    • get pkiType(): string

      Gets the PKI type name for this object (typically the class name). Used for PEM headers and debugging output.

      Returns string

    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

    • 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