Creates a new MessageImprint instance.
Configuration object
The hash algorithm identifier
The computed hash value
Algorithm used to hash the message
The hash value of the message to be timestamped
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 MessageImprint to its ASN.1 representation.
ASN.1 SEQUENCE containing the hash algorithm and hashed message
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 MessageImprint from an ASN.1 structure.
Parses the ASN.1 SEQUENCE and extracts the hash algorithm and hashed message.
The ASN.1 structure to parse
The parsed MessageImprint object
MessageImprint structure for RFC 3161 Time-Stamp Protocol.
MessageImprint contains the hash of the data to be time-stamped along with the algorithm used to compute the hash. This ensures the integrity of the timestamped data by binding the timestamp to a specific hash value.
Asn
See
RFC 3161 Section 2.4.1 - TSAReq Structure