Key manager implementation for Barbican
tacker.keymgr.barbican_key_manager.
BarbicanKeyManager
(auth_url)¶Bases: tacker.keymgr.key_manager.KeyManager
Key Manager Interface that wraps the Barbican client API.
delete
(context, managed_object_id)¶Deletes the specified managed object.
context – contains information of the user and the environment for the request
managed_object_id – the UUID of the object to delete
KeyManagerError – if object deletion fails
ManagedObjectNotFoundError – if the object could not be found
get
(context, managed_object_id, metadata_only=False)¶Retrieves the specified managed object.
context – contains information of the user and the environment for the request
managed_object_id – the UUID of the object to retrieve
metadata_only – whether secret data should be included
ManagedObject representation of the managed object
KeyManagerError – if object retrieval fails
ManagedObjectNotFoundError – if object not found
store
(context, secret, expiration=None)¶Stores a secret with the key manager.
context – contains information of the user and the environment for the request
secret – a secret object with unencrypted payload. Known as “secret” to the barbicanclient api
expiration – the expiration time of the secret in ISO 8601 format
the UUID of the stored object
KeyManagerError – if object store fails
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.