Package org.openbravo.utils
Class FormatUtilities
- java.lang.Object
-
- org.openbravo.utils.FormatUtilities
-
public class FormatUtilities extends Object
-
-
Constructor Summary
Constructors Constructor Description FormatUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
encryptDecrypt(String text, boolean encrypt)
static String
replace(String strIni)
static String
replaceJS(String strIni)
static String
replaceJS(String strIni, boolean isUnderQuotes)
static String
replaceTildes(String strIni)
static String
sanitizeInput(String text)
static String[]
sanitizeInput(String[] text)
static String
sha1Base64(String text)
Deprecated.Use PasswordHash instead (since = "3.0PR20Q1", forRemoval = true)static String
truncate(String _s, int i)
-
-
-
Method Detail
-
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
-
-