Recovers the signed data from signature
using a public key pkey
. Not all signature algorithms support this operation.
Added in version 3.0. See also the man page EVP_PKEY_verify_recover(3).
signature
A String
containing the signature to be verified.
In cases of failure this field may contain an array of strings further describing the origin of the failure.
Returns the message imprint digest. For valid timestamps, this is the same value that was already given in the Request
. If status is GRANTED or GRANTED_WITH_MODS, this is never nil
.
mi = token_info.msg_imprint puts mi -> "DEADBEEF"
Returns serial number of the timestamp token. This value shall never be the same for two timestamp tokens issued by a dedicated timestamp authority. If status is GRANTED or GRANTED_WITH_MODS, this is never nil
.
Set
the message imprint digest.
Returns the message imprint (digest) of the data to be timestamped.
Specify whether the response shall contain the timestamp authority’s certificate or not. The default value is true
.
Indicates whether the response shall contain the timestamp authority’s certificate or not.
Creates a Response
with the help of an OpenSSL::PKey
, an OpenSSL::X509::Certificate
and a Request
.
Mandatory parameters for timestamp creation that need to be set in the Request:
Mandatory parameters that need to be set in the Factory:
In addition one of either Request#policy_id
or Factory#default_policy_id
must be set.
Raises a TimestampError
if creation fails, though successfully created error responses may be returned.
General callback for OpenSSL
verify
Responsible for finding the nearest targets to the given comment within the context of the given encapsulating node.
Fetch the start line of the value.
Fetch the start byte offset of the value.
Fetch the start byte column of the value.
Fetch the trailing comments of the value.
Configure the trailing comments field for this repository and return self.
Build a diagnostic from the given prism parse error.
Build a diagnostic from the given prism parse warning.
Build the parser gem AST from the prism AST.
Options for how prism should parse/lex the source.
Returns true if there is a comma between the two locations.
Returns true if there is a semicolon between the two locations.