Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

OpenSSL::Timestamp::TokenInfo#policy_id

token_info.policy_id → string or nil

Returns the timestamp policy object identifier of the policy this timestamp was created under. If status is GRANTED or GRANTED_WITH_MODS, this is never nil.

Example:

id = token_info.policy_id
puts id                 -> "1.2.3.4.5"
See also #ordering #serial_number #nonce #to_der also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0