Skip to content
class method

OpenSSL::Timestamp::TokenInfo.new

(::File | ::String token_der) -> ::OpenSSL::Timestamp::TokenInfo
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 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0