linotp.lib.tokens.passwordtoken module

This file containes PasswordTokenClass

class linotp.lib.tokens.passwordtoken.PasswordTokenClass(aToken)[source]

Bases: linotp.lib.tokens.hmactoken.HmacTokenClass

This Token does use a fixed Password as the OTP value. In addition, the OTP PIN can be used with this token. This Token can be used for a scenario like losttoken

checkOtp(anOtpVal, counter, window, options=None)[source]

This checks the static password

classmethod getClassInfo(key=None, ret='all')[source]

getClassInfo - returns a subtree of the token definition

Parameters:
  • key (string) – subsection identifier
  • ret (user defined) – default return value, if nothing is found
Returns:

subsection if key exists or user defined

Return type:

s.o.

classmethod getClassType()[source]
setOtpLen(otplen)[source]

sets the OTP length to the length of the password

update(param)[source]