keystone.credential.backends.base.
CredentialDriverBase
[source]¶Bases: object
create_credential
(credential_id, credential)[source]¶Create a new credential.
keystone.exception.Conflict – If a duplicate credential exists.
delete_credential
(credential_id)[source]¶Delete an existing credential.
keystone.exception.CredentialNotFound – If credential doesn’t exist.
get_credential
(credential_id)[source]¶Get a credential by ID.
credential_ref
keystone.exception.CredentialNotFound – If credential doesn’t exist.
list_credentials
(hints)[source]¶List all credentials.
hints – contains the list of filters yet to be satisfied. Any filters satisfied here will be removed so that the caller will know if any filters remain.
a list of credential_refs or an empty list.
list_credentials_for_user
(user_id, type=None)[source]¶List credentials for a user.
user_id – ID of a user to filter credentials by.
type – type of credentials to filter on.
a list of credential_refs or an empty list.
update_credential
(credential_id, credential)[source]¶Update an existing credential.
keystone.exception.CredentialNotFound – If credential doesn’t exist.
keystone.exception.Conflict – If a duplicate credential exists.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.