6.1.1.3.1.5.1.12. linotp.lib.tokens.vascotoken module

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

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

Bases: linotp.lib.tokenclass.TokenClass

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)[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.

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

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

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

subsection if key exists or user defined

:rtype : s.o.

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

return the generic token class identifier

reset()[source]
update(param)[source]