Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. 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.3 · 3.2 · 3.1