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
Gets the integer value.
The JavaScript number representation of the integer
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 to a BigInt value, which can handle integers of arbitrary precision
Converts this PKI object to DER (Distinguished Encoding Rules) format.
The DER-encoded bytes of this object
Converts the Integer to a hexadecimal string This method is primarily for display purposes and removes any leading zeros added for ASN.1 encoding compliance
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 to a JavaScript number. Warning: Will lose precision for integers larger than Number.MAX_SAFE_INTEGER
Alias of toInteger()
The JavaScript number representation of the integer
Converts this PKI object to PEM (Privacy-Enhanced Mail) format.
A PEM-encoded string with appropriate headers
Returns string representation of the integer
Static
from
Represents an ASN.1 INTEGER value. Handles both small and large integers with full support for multi-byte values including those exceeding JavaScript's Number limits.
Asn