Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CmsSecondFactorSetupInfo

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