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

Class Signer

source code

object --+        
         |        
   Keyczar --+    
             |    
      Verifier --+
                 |
                Signer

Capable of both signing and verifying.

Instance Methods [hide private]
 
IsAcceptablePurpose(self, purpose)
Only valid if purpose includes signing.
source code
string
Sign(self, data)
Sign given data and return corresponding signature.
source code

Inherited from Verifier: Verify

Inherited from Keyczar: GetKey, __init__, __str__

Inherited from Keyczar (private): _AddKey, _ParseHeader

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

Static Methods [hide private]
Signer
Read(location)
Return a Signer object created from FileReader at given location.
source code
Properties [hide private]

Inherited from Keyczar: primary_key, versions

Inherited from object: __class__

Method Details [hide private]

Read(location)
Static Method

source code 

Return a Signer object created from FileReader at given location.

Parameters:
  • location (string) - pathname of the directory storing the key files
Returns: Signer
a Signer to manage the keys stored at the given location and perform sign and verify functions.
Overrides: Keyczar.Read

IsAcceptablePurpose(self, purpose)

source code 

Only valid if purpose includes signing.

Overrides: Keyczar.IsAcceptablePurpose

Sign(self, data)

source code 

Sign given data and return corresponding signature.

For message M, outputs the signature as Header|Sig(Header.M).

Parameters:
  • data (string) - message to be signed
Returns: string
signature on the data encoded as a Base64 string