예제 #1
0
 def setOtpLen(self, otplen):
     '''
     sets the OTP length to the length of the password
     '''
     secretHOtp = self.token.getHOtpKey()
     sp = PasswordTokenClass.__secretPassword__(secretHOtp)
     pw_len = len(sp.getPassword())
     TokenClass.setOtpLen(self, pw_len)
     return