Beispiel #1
0
    def __init__(self, aToken):
        HmacTokenClass.__init__(self, aToken)
        self.setType("sms")
        self.hKeyRequired = False

        # we support various hashlib methods, but only on create
        # which is effectively set in the update
        self.hashlibStr = getFromConfig("hotp.hashlib", "sha1")
        self.mode = ["challenge"]
Beispiel #2
0
    def __init__(self, aToken):
        HmacTokenClass.__init__(self, aToken)
        self.setType(u"email")
        self.hKeyRequired = False

        # we support various hashlib methods, but only on create
        # which is effectively set in the update
        self.hashlibStr = context['Config'].get("hotp.hashlib", "sha1")
        self.mode = ['challenge']
Beispiel #3
0
    def __init__(self, a_token):
        """
        constructor - create a token object

        :param a_token: instance of the orm db object
        :type a_token:  orm object
        """
        HmacTokenClass.__init__(self, a_token)
        self.setType("mOTP")

        return
Beispiel #4
0
    def __init__(self, token_obj):
        """
        Constructor for VoiceToken
        :param token_obj: instance of the orm db object
        :type token_obj:  orm object
        """

        HmacTokenClass.__init__(self, token_obj)

        self.setType(u'voice')

        self.hashlibStr = "sha256"

        # the token support only challenge based authentication

        self.mode = ['challenge']