instance method
OpenSSL::Timestamp::TokenInfo#policy_id
() -> ::String?
token_info.policy_id → string or nil
ext/openssl/ossl_ts.c
View on GitHub ↗
static VALUE
ossl_ts_token_info_get_policy_id(VALUE self)
{
TS_TST_INFO *info;
GetTSTokenInfo(self, info);
return ossl_asn1obj_to_string(TS_TST_INFO_get_policy_id(info));
}
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"