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.0.3/stdlib/openssl/0/openssl.rbs, line 9728
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.0.3/stdlib/openssl/0/openssl.rbs, line 9740
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.0.3/stdlib/openssl/0/openssl.rbs, line 9749
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.0.3/stdlib/openssl/0/openssl.rbs, line 9758
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.0.3/stdlib/openssl/0/openssl.rbs, line 9766
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.0.3/stdlib/openssl/0/openssl.rbs, line 9774
def message_imprint=: (String) -> String
Set the message imprint digest.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 9783
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.0.3/stdlib/openssl/0/openssl.rbs, line 9793
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.0.3/stdlib/openssl/0/openssl.rbs, line 9802
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.0.3/stdlib/openssl/0/openssl.rbs, line 9815
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.0.3/stdlib/openssl/0/openssl.rbs, line 9823
def to_der: () -> String
DER-encodes this Request.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 9831
def version: () -> Integer
Returns the version of this request. 1 is the default value.