keystone.credential.providers.fernet package

keystone.credential.providers.fernet package

Submodules

keystone.credential.providers.fernet.core module

class keystone.credential.providers.fernet.core.Provider[source]

Bases: keystone.credential.providers.core.Provider

decrypt(credential)[source]

Attempt to decrypt a credential.

Parameters:credential – an encrypted credential string
Returns:a decrypted credential
encrypt(credential)[source]

Attempt to encrypt a plaintext credential.

Parameters:credential – a plaintext representation of a credential
Returns:an encrypted credential
keystone.credential.providers.fernet.core.get_multi_fernet_keys()[source]
keystone.credential.providers.fernet.core.primary_key_hash(keys)[source]

Calculate a hash of the primary key used for encryption.

Module contents

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.