linotp.tokens.vascotoken module

This file contains the dynamic Vasco token implementation: - VascoTokenClass (vasco)

class linotp.tokens.vascotoken.VascoTokenClass(aToken)[source]

Bases: linotp.tokens.base.TokenClass

Vasco Token Class - binding against the vasco dll

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

Checks if the OTP value is valid.

Therefore the vasco data blob is fetched from the database and this very blob and the otp value is passed to the vasco function vasco_otp_check.

After that the modified vasco blob needs to be stored (updated) in the database again.

check_otp_exist(otp, window=10, user=None, autoassign=False)[source]

checks if the given OTP value is/are values of this very token. This is used to autoassign and to determine the serial number of a token.

  • otp (string) – The OTP value to search for
  • window (int) – In how many future OTP values the given OTP value should be searched

tuple of the result value and the data itself

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

getClassInfo - returns all or a subtree of the token definition

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

subsection if key exists or user defined

:rtype : s.o.

classmethod getClassPrefix()[source]
classmethod getClassType()[source]

return the generic token class identifier


reset the token failcount value

update(param, reset_failcount=True)[source]