15.2.1.2.6. mOTP Token¶
-
class
privacyidea.lib.tokens.motptoken.
MotpTokenClass
(db_token)[source]¶ -
check_otp
(anOtpVal, counter=None, window=None, options=None)[source]¶ validate the token otp against a given otpvalue
- Parameters
anOtpVal (str) – the to be verified otpvalue
counter (int) – the counter state, that should be verified
window (int) – the counter +window, which should be checked
options (dict) – the dict, which could contain token specific info
- Returns
the counter state or -1
- Return type
int
-
static
get_class_info
(key=None, ret='all')[source]¶ returns a subtree of the token definition Is used by lib.token.get_token_info
- Parameters
key (string) – subsection identifier
ret (user defined) – default return value, if nothing is found
- Returns
subsection if key exists or user defined
:rtype : dict or string
-