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