How to instatiate a new GoogleAuthenticatorKey?
niklas2810 opened this issue · comments
Hey,
I need to instatiate a new GoogleAuthenticatorKey because I want to generate a QR-Code:
String link = GoogleAuthenticatorQRGenerator.getOtpAuthURL("MyProgram", "ex@myprogram.com", <key>);
I already know that it's not possible to do new GoogleAuthenticatorKey()
. I already stored the Key in a Credentials Manager.
My Question: How can I get that GoogleAuthenticatorKey variable / Get the QR-Code URL without having an GoogleAuthenticatorKey variable?
Thanks in advance,
Niklas