![]() |
![]()
| ![]() |
![]()
NAMEOpenXPKI::Server::API2::Plugin::Datapool::set_data_pool_entry COMMANDSset_data_pool_entryWrites the specified entry (key-value pair) to the global data pool, possibly encrypting the value using the password safe defined for the PKI Realm. Side effect: this method automatically wipes all data pool entries whose expiration date has passed. NOTE: Encryption may work even though the private key for the password safe is not available (the symmetric encryption key is encrypted for the password safe certificate). Retrieving encrypted information will only work if the password safe key is available during the first access to the symmetric key. Example: CTX('api2')->set_data_pool_entry( pki_realm => $pki_realm, namespace => 'workflow.foo.bar', key => 'myvariable', value => $tmpval, encrypt => 1, force => 1, expiration_date => time + 3600 * 24 * 7, ); Parameters
|