Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

OpenSSL::Timestamp::TokenInfo.new

OpenSSL::Timestamp::TokenInfo.new(file) → token-info
OpenSSL::Timestamp::TokenInfo.new(string) → token-info

Creates a TokenInfo from a File or string parameter, the corresponding File or string must be DER-encoded. Please note that TokenInfo is an immutable read-only class. If you’d like to create timestamps please refer to Factory instead.

See also #algorithm #gen_time also in 4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0