Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
OpenXPKI::Server::API2UseruContributedKPerleDoer::API2::Plugin::Token::Util(3)

NAME
       OpenXPKI::Server::API2::Plugin::Token::Util - Some utility functions
       for token related API methods

METHODS
   is_token_usable
       Checks 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_epoch
       Converts	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,
	   }

perl v5.32.0			OpenXPKI::Server::API2::Plugin::Token::Util(3)

NAME | METHODS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=OpenXPKI::Server::API2::Plugin::Token::Util&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help