|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.security.AddressValidationHelper
public final class AddressValidationHelper
A helper class to calculate hash code values for e-mail address validation.
| Method Summary | |
|---|---|
static String |
calculateCRC32(String addr)
Calculates the validate hash code for an e-mail address using CRC32, converted to hexadecimal. |
static String |
calculateHashCode(String addr)
Calculates the validate hash code for an e-mail address, converted to Base64. |
static String |
formatHash(CharSequence rawHash)
Restores a submitted hashcode even after IE has converted the plus signs to spaces. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String calculateHashCode(String addr)
addr - the e-mail address
NullPointerException - if addr is nullpublic static String calculateCRC32(String addr)
addr - the e-mail address
NullPointerException - if addr is nullpublic static String formatHash(CharSequence rawHash)
rawHash - the raw hash code
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||