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

Class Keyczar

source code

object --+
         |
        Keyczar
Known Subclasses:

Abstract Keyczar base class.

Instance Methods [hide private]
 
__init__(self, reader)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
keys.Key
_ParseHeader(self, header)
Parse the header and verify version, format info.
source code
 
IsAcceptablePurpose(self, purpose)
Indicates whether purpose is valid.
source code
keys.Key
GetKey(self, id)
Returns the key associated with the given id, a hash or a version.
source code
 
_AddKey(self, version, key) source code

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

Static Methods [hide private]
Keyczar
Read(location)
Return a Keyczar object created from FileReader at given location.
source code
Properties [hide private]
  versions
List of versions in key set.
  primary_key
The primary key for this key set.

Inherited from object: __class__

Method Details [hide private]

__init__(self, reader)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

_ParseHeader(self, header)

source code 

Parse the header and verify version, format info. Return key if exists.

Parameters:
  • header (string) - the bytes of the header of Keyczar output
Returns: keys.Key
the key identified by the hash in the header
Raises:

Read(location)
Static Method

source code 

Return a Keyczar object created from FileReader at given location.

Parameters:
  • location (string) - pathname of the directory storing the key files
Returns: Keyczar
a Keyczar to manage the keys stored at the given location

IsAcceptablePurpose(self, purpose)

source code 

Indicates whether purpose is valid. Abstract method.

GetKey(self, id)

source code 

Returns the key associated with the given id, a hash or a version.

Parameters:
  • id (string or keydata.KeyVersion) - Either the hash identifier of the key or its version.
Returns: keys.Key
key associated with this id or None if id doesn't exist.
Raises:

Property Details [hide private]

versions

List of versions in key set.

Get Method:
unreachable(self)

primary_key

The primary key for this key set.

Get Method:
unreachable(self)