|
NAMEOpenXPKI::Server::API2::Plugin::Token::Util - Some utility functions for token related API methodsMETHODSis_token_usableChecks if the given token (OpenXPKI::Crypto::API) is usable by doing an encryption/decryption roundtrip.Returns 1 if everything went fine, "undef" otherwise. validity_to_epochConverts a HashRef with a validity interval given as DateTime objects into a HashRef with Unix epoch timestamps.Expects undef or DateTime objects in a HashRef like this: { notbefore => DateTime->new(year => 1980, month => 12, day => 1), notafter => undef, # means: now } and converts it to: { notbefore => 344476800, notafter => 1491328939, }
Visit the GSP FreeBSD Man Page Interface. |