Creates a new TSTInfo instance.
Configuration object for the timestamp info
Optionalaccuracy?: AccuracyOptional accuracy specification
Optionalextensions?: Extension[]Optional extensions
Generation time of the timestamp
Hash imprint that was timestamped
Optionalnonce?: Uint8Array<ArrayBuffer>Optional nonce (must match request if present)
Optionalordering?: booleanWhether timestamps are ordered
TSA policy OID
Unique serial number (up to 160 bits)
Optionaltsa?: GeneralNameOptional TSA identity
Optionalversion?: numberProtocol version, defaults to 1
OptionalaccuracyOptional accuracy of the timestamp
OptionalextensionsOptional extensions
Time at which the timestamp was generated
Hash of the data that was timestamped
OptionalnonceOptional nonce from the request
Whether timestamps are ordered (default false)
TSA policy under which the timestamp was issued
Unique serial number for this timestamp
OptionaltsaOptional TSA identity
Version of the TSTInfo format, currently always 1
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
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 TSTInfo to its ASN.1 representation.
Creates a SEQUENCE containing all the timestamp info fields in the proper order according to RFC 3161 specification.
ASN.1 structure representing the timestamp info
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
StaticfromCreates a TSTInfo from an ASN.1 structure.
Parses the ASN.1 SEQUENCE and extracts all optional and required fields according to RFC 3161 specification.
The ASN.1 structure to parse
The parsed TSTInfo object
Staticfrom
TSTInfo structure for RFC 3161 Time-Stamp Protocol.
The TSTInfo is the core content of a timestamp token. It contains the actual timestamp along with the hashed data and policy information. This structure is encapsulated within a SignedData content type.
Asn
See
RFC 3161 Section 2.4.2 - TSTInfo Structure