class OpenSSL::Timestamp::Request
Allows to create timestamp requests or parse existing ones. A Request is also needed for creating timestamps from scratch with Factory. When created from scratch, some default values are set: * version is set to 1 * cert_requested is set to true * algorithm, message_imprint, policy_id, and nonce are set to false
Public Class Methods
Public Instance Methods
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 9759
def algorithm: () -> String
Returns the ‘short name’ of the object identifier that represents the algorithm that was used to create the message imprint digest.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 9771
def algorithm=: (String) -> String
Allows to set the object identifier or the ‘short name’ of the algorithm that was used to create the message imprint digest.
Example:
request.algorithm = "SHA1"
[U] (boolish) → U
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 9780
def cert_requested=: [U] (boolish) -> U
Specify whether the response shall contain the timestamp authority’s certificate or not. The default value is true.
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 9789
def cert_requested?: () -> bool
Indicates whether the response shall contain the timestamp authority’s certificate or not.
() → String?
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 9797
def message_imprint: () -> String?
Returns the message imprint (digest) of the data to be timestamped.
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 9805
def message_imprint=: (String) -> String
Set the message imprint digest.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 9814
def nonce: () -> BN?
Returns the nonce (number used once) that the server shall include in its response.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 9824
def nonce=: (bn nonce) -> BN
Sets the nonce (number used once) that the server shall include in its response. If the nonce is set, the server must return the same nonce value in a valid Response.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 9833
def policy_id: () -> String?
Returns the ‘short name’ of the object identifier that represents the timestamp policy under which the server shall create the timestamp.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 9846
def policy_id=: (String policy_id) -> String
Allows to set the object identifier that represents the timestamp policy under which the server shall create the timestamp. This may be left nil, implying that the timestamp server will issue the timestamp using some default policy.
Example:
request.policy_id = "1.2.3.4.5"
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 9854
def to_der: () -> String
DER-encodes this Request.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 9862
def version: () -> Integer
Returns the version of this request. 1 is the default value.