java.lang.Object
dev.eidentification.bankid.client.utils.QRCodeUtils

public final class QRCodeUtils extends Object
This class contains utility functions for working with QR codes.
  • Method Details

    • qrCode

      public static String qrCode(String qrStartToken, String qrStartSecret, LocalDateTime orderTime)
      Generates a QR code.

      The QR code should be generated by the RP every second using the pattern "bankid.qrStartToken.time.qrAuthCode".

      Parameters:
      qrStartToken - the start token from the auth or sign response.
      qrStartSecret - the start secret from the auth or sign response.
      orderTime - the time at which the auth or sign response was received.
      Returns:
      a string representing the generated QR code.
      Throws:
      NullPointerException - if any of the parameters are null
      BankIdException - if an error occurs during MAC generation.