|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.openexchange.admin.tools.GenericChecks
public class GenericChecks
Constructor Summary | |
---|---|
GenericChecks()
|
Method Summary | |
---|---|
static boolean |
authByMech(String crypted,
String clear,
String mech)
Authenticate the cleartext password against the crypted string using the specified authmech |
static void |
checkChangeValidPasswordMech(PasswordMechObject user)
Checks whether supplied password mech is a valid password mech as specified in PasswordMechObject . |
static void |
checkCreateValidPasswordMech(PasswordMechObject user)
Checks whether supplied password mech is a valid password mech as specified in PasswordMechObject . |
static void |
checkValidMailAddress(String address)
This method throws an exception if the address is != null and contains invalid characters |
static boolean |
isValidMailAddress(String address)
This method checks if an address contains invalid characters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericChecks()
Method Detail |
---|
public static final boolean isValidMailAddress(String address)
address
- The address string to checkpublic static final void checkValidMailAddress(String address) throws InvalidDataException
address
- The address string to check
InvalidDataException
- If given address string is not a valid email addresspublic static final void checkChangeValidPasswordMech(PasswordMechObject user) throws InvalidDataException
PasswordMechObject
.
Checks whether password is not an empty string.
Checks checks whether mech has changed without supplying new
password string
user
-
InvalidDataException
public static final void checkCreateValidPasswordMech(PasswordMechObject user) throws InvalidDataException
PasswordMechObject
.
user
-
InvalidDataException
public static final boolean authByMech(String crypted, String clear, String mech) throws NoSuchAlgorithmException, UnsupportedEncodingException
crypted
- clear
- mech
-
NoSuchAlgorithmException
UnsupportedEncodingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |