Skip to content

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

instance method

OpenSSL::Timestamp::TokenInfo#algorithm

token_info.algorithm → string or nil

Returns the ‘short name’ of the object identifier representing the algorithm that was used to derive the message imprint digest. For valid timestamps, this is the same value that was already given in the Request. If status is GRANTED or GRANTED_WITH_MODS, this is never nil.

Example:

algo = token_info.algorithm
puts algo                -> "SHA1"
See also .new #gen_time #message_imprint also in 4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0