Class CmsSecondFactorSetupInfo

java.lang.Object
org.opencms.security.twofactor.CmsSecondFactorSetupInfo

public class CmsSecondFactorSetupInfo extends Object
The data needed to set up two-factor authentication for a user.
  • Constructor Details

    • CmsSecondFactorSetupInfo

      public CmsSecondFactorSetupInfo(String secret, String qrCodeImageUrl)
      Creates a new instance.
      Parameters:
      secret - the shared secret
      qrCodeImageUrl - 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

      public String getSecret()
      Gets the shared secret in text form.
      Returns:
      the shared secret