Class SGenerateQRCode


  • public class SGenerateQRCode
    extends java.lang.Object
    Author:
    Sokkheang.huo
    • Constructor Summary

      Constructors 
      Constructor Description
      SGenerateQRCode()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void createQRCode​(java.lang.String barCodeData, java.lang.String output_filePath, java.lang.String output_file, int height, int width)  
      static java.lang.String generateSecretKey()  
      static java.lang.String getTOTPCode​(java.lang.String secretKey)  
      static void GoogleAuthenticatorQRCode​(java.lang.String secretKey, java.lang.String email, java.lang.String companyName, java.lang.String QRCode_path, java.lang.String output_file, int height, int width)  
      • Methods inherited from class java.lang.Object

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

      • SGenerateQRCode

        public SGenerateQRCode()
    • Method Detail

      • generateSecretKey

        public static java.lang.String generateSecretKey()
      • getTOTPCode

        public static java.lang.String getTOTPCode​(java.lang.String secretKey)
      • createQRCode

        public static void createQRCode​(java.lang.String barCodeData,
                                        java.lang.String output_filePath,
                                        java.lang.String output_file,
                                        int height,
                                        int width)
                                 throws com.google.zxing.WriterException,
                                        java.io.IOException,
                                        SException
        Throws:
        com.google.zxing.WriterException
        java.io.IOException
        SException
      • GoogleAuthenticatorQRCode

        public static void GoogleAuthenticatorQRCode​(java.lang.String secretKey,
                                                     java.lang.String email,
                                                     java.lang.String companyName,
                                                     java.lang.String QRCode_path,
                                                     java.lang.String output_file,
                                                     int height,
                                                     int width)
                                              throws SException
        Throws:
        SException