linotp.tokens.qrtoken module

class linotp.tokens.qrtoken.QRTokenPairingData[source]

Bases: linotp.tokens.qrtoken._QRTokenPairingData

holds all the information of a QRToken pairing response, namely user_public_key, user_token_id, serial and user_login


Parses the decrypted inner layer of a pairing response according to the QRToken Pairing data format.

Parameters:plaintext – The plaintext received from the decryption of the outer pairing response layer
Returns:QRTokenPairingData: A named tuple holding the parsed fields