|
NAMEOpenXPKI::Server::API2::Plugin::Datapool::Util - Base role for datapool related plugins that provides some utility methodsMETHODSDESCRIPTIONassert_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 itemsset_entryinternal worker function, accepts more parameters than the API function named attributes: encrypt => not set, undefined -> do not encrypt value 'current_symmetric_key' -> encrypt using the current symmetric key associated with the current password safe 'password_safe' -> encrypt using the current password safe (asymmetrically)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 keyfetch_symmetric_keyReturns a HashRef containing an existing symmetric encryption key for encrypting datapool values either from the server cache or from the datapool.
Visit the GSP FreeBSD Man Page Interface. |