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

Class EncryptedReader

source code

object --+    
         |    
    Reader --+
             |
            EncryptedReader

Reader that reads encrypted key data from files.

Instance Methods [hide private]
 
__init__(self, reader, crypter)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
string
GetMetadata(self)
Return the KeyMetadata for the key set being read.
source code
string
GetKey(self, version_number)
Return the key corresponding to the given version.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, reader, crypter)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

GetMetadata(self)

source code 

Return the KeyMetadata for the key set being read.

Returns: string
JSON string representation of KeyMetadata object
Raises:
Overrides: Reader.GetMetadata
(inherited documentation)

GetKey(self, version_number)

source code 

Return the key corresponding to the given version.

Parameters:
  • version_number - the version number of the desired key
Returns: string
JSON string representation of a Key object
Raises:
Overrides: Reader.GetKey
(inherited documentation)