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

Class NonceStoreBase

source code


Nonce storage interface.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
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

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

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