Package wsgitools :: Module digest :: Class NonceStoreBase
[hide private]
[frames] | no frames]

Class NonceStoreBase

source code


Nonce storage interface.

Instance Methods [hide private]
 
__init__(self) source code
str
newnonce(self, ident=None)
This method is to be overriden and should return new nonces.
source code
bool
checknonce(self, nonce, count=1, ident=None)
This method is to be overridden and should do a check for whether the given nonce is valid as being used count times.
source code
Method Details [hide private]

newnonce(self, ident=None)

source code 

This method is to be overriden and should return new nonces.

Parameters:
  • ident (str) - is an identifier to be associated with this nonce
Returns: str

checknonce(self, nonce, count=1, ident=None)

source code 

This method is to be overridden and should do a check for whether the given nonce is valid as being used count times.

Parameters:
  • count (int) - indicates how often the nonce has been used (including this check)
  • ident (str) - it is also checked that the nonce was associated to this identifier when given
  • nonce (str)
Returns: bool