Creates a new PKIStatusInfo instance.
Configuration object
Optional
failInfo?: PKIFailureInfoOptional failure information
The PKI status code
Optional
statusString?: PKIFreeTextOptional descriptive text
Optional
failOptional specific failure information
The status code indicating success or failure
Optional
statusOptional human-readable status description
Gets the PEM header name for this object type. Converts the class name to uppercase for use in PEM encoding.
Gets the PKI type name for this object (typically the class name). Used for PEM headers and debugging output.
Compares this PKI object with another for equality. Two objects are considered equal if their DER encodings are identical.
The other PKI object to compare with
true if the objects are equal, false otherwise
Get a human-readable status description
Check if the status indicates success
Parses this object as a different PKI type. Useful for converting between related PKI structures.
The target type to parse as
The target type constructor with parsing capabilities
A new instance of the target type
Converts the PKIStatusInfo to its ASN.1 representation.
ASN.1 SEQUENCE containing status and optional fields
Converts this PKI object to DER (Distinguished Encoding Rules) format.
The DER-encoded bytes of this object
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.
A human-readable string representation
Converts this PKI object to PEM (Privacy-Enhanced Mail) format.
A PEM-encoded string with appropriate headers
Returns a string representation of this PKI object. Includes the type name and ASN.1 structure.
A string representation for debugging
Static
fromCreates a PKIStatusInfo from an ASN.1 structure.
The ASN.1 structure to parse
The parsed PKIStatusInfo object
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.
Asn
PKIStatusInfo ::= SEQUENCE { status PKIStatus, statusString PKIFreeText OPTIONAL, failInfo PKIFailureInfo OPTIONAL }
Example