Package keyczar :: Module keys :: Class Key
[hide private]
[frames] | no frames]

Class Key

source code

object --+
         |
        Key
Known Subclasses:

Parent class for Keyczar Keys.

Instance Methods [hide private]
 
__init__(self, type)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__SetSize(self, new_size) source code
 
_GetKeyString(self)
Return the key as a string.
source code
 
__GetKeyString(self)
Indirect getter for the key string.
source code
 
_Hash(self)
Compute and return the hash id of this key.
source code
 
__Hash(self)
Indirect getter for hash.
source code
 
Header(self)
Return the 5-byte header string including version byte, 4-byte hash.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]
  hash
The hash id of the key.
  size
The size of the key in bits.
  key_string
The key as a Base64 string.
  key_bytes
The key as bytes.

Inherited from object: __class__

Method Details [hide private]

__init__(self, type)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

_GetKeyString(self)

source code 

Return the key as a string. Abstract method.

_Hash(self)

source code 

Compute and return the hash id of this key. Can override default hash.


Property Details [hide private]

hash

The hash id of the key.

Get Method:
__Hash(self) - Indirect getter for hash.

size

The size of the key in bits.

Get Method:
unreachable(self)
Set Method:
__SetSize(self, new_size)

key_string

The key as a Base64 string.

Get Method:
__GetKeyString(self) - Indirect getter for the key string.

key_bytes

The key as bytes.

Get Method:
unreachable(self)