6.1.1.4. linotp.model package¶
6.1.1.4.1. Submodules¶
6.1.1.4.2. Module contents¶
This file contains the database definition / database model for linotp objects
- class linotp.model.Challenge(transid, tokenserial, challenge=u'', data=u'', session=u'')[source]¶
Bases: object
the generic challange handling
- challenge¶
- data¶
- get(key=None, fallback=None, save=False)[source]¶
simulate the dict behaviour to make challenge processing easier, as this will have to deal as well with ‘dict only challenges’
Parameters: - key – the attribute name - in case of key is not provided, a dict of all class attributes are returned
- fallback – if the attribute is not found, the fallback is returned
- save – in case of all attributes and save==True, the timestamp is converted to a string representation
- get_vars(save=False)[source]¶
return a dictionary of all vars in the challenge class
Returns: dict of vars
- id¶
- received_count¶
- received_tan¶
- save()[source]¶
enforce the saveing of a challenge - will guarentee the uniqness of the transaction id
Returns: transaction id of the stored challeng
- session¶
- timestamp¶
- tokenserial¶
- transid¶
- valid_tan¶
- class linotp.model.Config(Key, Value, Type=u'', Description=u'')[source]¶
Bases: object
- Description¶
- Key¶
- Type¶
- Value¶
- class linotp.model.OcraChallenge(transId, challenge, tokenserial, data, session=u'')[source]¶
Bases: object
- challenge¶
- data¶
- id¶
- received_count¶
- received_tan¶
- session¶
- timestamp¶
- tokenserial¶
- transid¶
- valid_tan¶
- class linotp.model.Token(serial)[source]¶
Bases: object
- LinOtpCount¶
- LinOtpCountWindow¶
- LinOtpFailCount¶
- LinOtpIdResClass¶
- LinOtpIdResolver¶
- LinOtpIsactive¶
- LinOtpKeyEnc¶
- LinOtpKeyIV¶
- LinOtpMaxFail¶
- LinOtpOtpLen¶
- LinOtpPinHash¶
- LinOtpSeed¶
- LinOtpSyncWindow¶
- LinOtpTokenDesc¶
- LinOtpTokenId¶
- LinOtpTokenInfo¶
- LinOtpTokenPinSO¶
- LinOtpTokenPinSOIV¶
- LinOtpTokenPinUser¶
- LinOtpTokenPinUserIV¶
- LinOtpTokenSerialnumber¶
- LinOtpTokenType¶
- LinOtpUserid¶
- get(key=None, fallback=None, save=False)[source]¶
simulate the dict behaviour to make challenge processing easier, as this will have to deal as well with ‘dict only challenges’
Parameters: - key – the attribute name - in case of key is not provided, a dict of all class attributes are returned
- fallback – if the attribute is not found, the fallback is returned
- save – in case of all attributes and save==True, the timestamp is converted to a string representation
- realms¶