6.1.1.3.1.5.1.5. linotp.lib.tokens.passwordtoken module

This file containes PasswordTokenClass

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

Bases: linotp.lib.tokenclass.TokenClass

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]