linotp.tokens.pushtoken package

class linotp.tokens.pushtoken.PushTokenPairingData(user_public_key, user_token_id, serial, user_login, gda)

Bases: _PushTokenPairingData

holds all the information of a PushToken pairing response, namely user_public_key, user_token_id, serial, user_login, gda (generic device address)

linotp.tokens.pushtoken.parse_and_verify_pushtoken_pairing_data(plaintext)

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

Parameters

plaintext – The plaintext reveceived from the decryption of the outer pairing response layer

Raises
  • ParameterError – If plaintext has a wrong format

  • ValueError – If signature check failed

Returns

PushTokenPairingData