Package org.opencms.security.twofactor
Class CmsSecondFactorSetupInfo
java.lang.Object
org.opencms.security.twofactor.CmsSecondFactorSetupInfo
The data needed to set up two-factor authentication for a user.
-
Constructor Summary
ConstructorDescriptionCmsSecondFactorSetupInfo
(String secret, String qrCodeImageUrl) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the data URL with the QR code image that the user should scan.Gets the shared secret in text form.
-
Constructor Details
-
CmsSecondFactorSetupInfo
Creates a new instance.- Parameters:
secret
- the shared secretqrCodeImageUrl
- the QR code data URL
-
-
Method Details
-
getQrCodeImageUrl
Gets the data URL with the QR code image that the user should scan.- Returns:
- the QR code data URL
-
getSecret
Gets the shared secret in text form.- Returns:
- the shared secret
-