java.lang.Object
dev.eidentification.bankid.client.utils.QRCodeUtils
This class contains utility functions for working with QR codes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
qrCode
(String qrStartToken, String qrStartSecret, LocalDateTime orderTime) Generates a QR code.
-
Method Details
-
qrCode
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 nullBankIdException
- if an error occurs during MAC generation.
-