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

Class Verifier

source code

object --+    
         |    
   Keyczar --+
             |
            Verifier
Known Subclasses:

Capable of verifying only.

Instance Methods [hide private]
 
IsAcceptablePurpose(self, purpose)
Only valid if purpose includes verifying.
source code
boolean
Verify(self, data, sig)
Verifies whether the signature corresponds to the given data.
source code

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]
Verifier
Read(location)
Return a Verifier 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 Verifier object created from FileReader at given location.

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

IsAcceptablePurpose(self, purpose)

source code 

Only valid if purpose includes verifying.

Overrides: Keyczar.IsAcceptablePurpose

Verify(self, data, sig)

source code 

Verifies whether the signature corresponds to the given data.

Parameters:
  • data (string) - message that has been signed with sig
  • sig (string) - Base64 string formatted as Header|Signature
Returns: boolean
True if sig corresponds to data, False otherwise.