![]() |
![]()
| ![]() |
![]()
NAMEOpenXPKI::Server::API2::Plugin::Datapool::Util - Base role for datapool related plugins that provides some utility methods METHODSDESCRIPTIONassert_current_pki_realm_within_workflowIf the calling code is within OpenXPKI::Server::Workflow namespace, check whether the requested PKI realm matches the current one. Parameters
get_entryFetches a value from the datapool DB table - hides expired items set_entryinternal worker function, accepts more parameters than the API
function named attributes: encrypt =>
cleanupClean up data pool (delete expired entries). get_realm_encryption_keyFetches or creates a symmetric encryption key for encrypting datapool values in the given PKI realm. Returns a HashRef directly usable by OpenXPKI::Crypto::VolatileVault's constructor: { KEY_ID => '...', ALGORITHM => '...', IV => '...', KEY => '...', } Creates a new key for the PKI realm if necessary. create_realm_encryption_keyGenerate a new encryption key fetch_symmetric_keyReturns a HashRef containing an existing symmetric encryption key for encrypting datapool values either from the server cache or from the datapool.
|