OpenXPKI::Server::Workflow::Validator::ValidityString
action:
class: OpenXPKI::Server::Workflow::Validator::ValidityString
param:
format: detect
condition: lte
arg:
- $timestamp
This validator checks whether a given timestamp can be handled by
OpenXPKI::Datetime::get_validity. In addition, it can test if the result is in
the past/future.
- format
- Any format which is accepted as VALIDITYFORMAT by
OpenXPKI::Datetime::get_validity. The default is 'detect';
- condition
- Optional, if set the resulting timestamp is checked using the equotation
$timestamp $condition
time() , e.g. "lte" will accepts
timestamps in the past including now.
- lt (less than)
- lte (less than or equal)
- gt (greater than)
- gte (greater than or equal)