Class FormatUtilities


  • public class FormatUtilities
    extends Object
    • Constructor Detail

      • FormatUtilities

        public FormatUtilities()
    • Method Detail

      • truncate

        public static String truncate​(String _s,
                                      int i)
      • replaceTildes

        public static String replaceTildes​(String strIni)
      • replaceJS

        public static String replaceJS​(String strIni)
      • replaceJS

        public static String replaceJS​(String strIni,
                                       boolean isUnderQuotes)
      • sha1Base64

        @Deprecated
        public static String sha1Base64​(String text)
                                 throws javax.servlet.ServletException
        Deprecated.
        Use PasswordHash instead (since = "3.0PR20Q1", forRemoval = true)
        Hashes text using SHA-1 algorithm. This method is deprecated in favor of PasswordHash which supports more modern algorithms.
        Throws:
        javax.servlet.ServletException
      • encryptDecrypt

        public static String encryptDecrypt​(String text,
                                            boolean encrypt)
                                     throws javax.servlet.ServletException
        Throws:
        javax.servlet.ServletException
      • sanitizeInput

        public static String sanitizeInput​(String text)
      • sanitizeInput

        public static String[] sanitizeInput​(String[] text)