public final class StringUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsDigit(String text) |
static String |
encodePassword(String password,
String algorithm)
Encode a string using algorithm specified in web.xml and return the
resulting encrypted password.
|
static String |
encodeString(String str)
Encode a string using Base64 encoding.
|
public static String encodePassword(String password, String algorithm)
password - Password or other credentials to use in authenticating
this usernamealgorithm - Algorithm used to do the digestpublic static String encodeString(String str)
str - the string to encodepublic static boolean containsDigit(String text)
Copyright © 2015. All rights reserved.