OpenXPKI::Server::API2::Plugin::Cert::set_cert_metadata
Update the metadata of a certificate stored in the
certificate_attributes table.
Parameters
- error
- If the used key is already present, an exception is thrown. This is the
default.
- skip
- The new value is discarded, the old one will remain in the table.
- overwrite
- The old value should be replaced by the new one.
If the existing data is multivalued, the incoming data must
also be an array and all items that are no longer present in the new
list will be removed, new ones will be appended. Passing an empty array
will remove all existing entries. Passing a, non-empty, scalar will
cause an exception.
- merge
- Add the new value(s) if they does not already exists, will work with
scalars and arrays regardless of the existing data.
- "attribute" HashRef
A hashref holding the attributes to set. Each key is the name
of an attribute, the prefix meta_ is prepended internally and
must not be passed. The value can be either scalar or list and
represents the value(s) to set.
Empty or undef scalars as value are ignored, to delete a key
when in overwrite mode, pass an empty array:
{
attribute => {
key_to_delete => []
},
mode => overwrite
}
- "tenant" Str