The nova.keymgr.key Module

Base Key and SymmetricKey Classes

This module defines the Key and SymmetricKey classes. The Key class is the base class to represent all encryption keys. The basis for this class was copied from Java.

class Key

Bases: object

Base class to represent all keys.

get_algorithm()

Returns the key’s algorithm.

Returns the key’s algorithm. For example, “DSA” indicates that this key is a DSA key and “AES” indicates that this key is an AES key.

get_encoded()

Returns the key in the format specified by its encoding.

get_format()

Returns the encoding format.

Returns the key’s encoding format or None if this key is not encoded.

class SymmetricKey(alg, key)

Bases: nova.keymgr.key.Key

This class represents symmetric keys.

get_algorithm()

Returns the algorithm for symmetric encryption.

get_encoded()

Returns the key in its encoded format.

get_format()

This method returns ‘RAW’.

Previous topic

The nova.keymgr.conf_key_mgr Module

Next topic

The nova.keymgr.key_mgr Module

Project Source

This Page