Package io.quarkus.vault.secrets.totp
Class KeyDefinition
- java.lang.Object
-
- io.quarkus.vault.secrets.totp.KeyDefinition
-
public class KeyDefinition extends Object
-
-
Constructor Summary
Constructors Constructor Description KeyDefinition()KeyDefinition(String barcode, String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetBarcode()QR code in base64-formatteed PNG bytes.StringgetUrl()URL in otpauth format (ie otpauth://totp/Google:test@gmail.com?algorithm=SHA1&digits=6&issuer=Google&period=30&secret=HTXT7KJFVNAJUPYWQRWMNVQE5AF5YZI2)inthashCode()StringtoString()
-
-
-
Method Detail
-
getBarcode
public String getBarcode()
QR code in base64-formatteed PNG bytes.- Returns:
- Barcode.
-
getUrl
public String getUrl()
URL in otpauth format (ie otpauth://totp/Google:test@gmail.com?algorithm=SHA1&digits=6&issuer=Google&period=30&secret=HTXT7KJFVNAJUPYWQRWMNVQE5AF5YZI2)- Returns:
- URL in otpauth format.
-
-