public class EmailUserIdentifier extends Object implements UserIdentifier, Serializable
UserIdentifier
for identifying a user by email address. The email address is
stored as md5 hash.Constructor and Description |
---|
EmailUserIdentifier(String email)
Creates a new
UserIdentifier for email. |
Modifier and Type | Method and Description |
---|---|
static String |
computeHash(String email)
Converts an email address to a md5 hash.
|
String |
getUserIdentifier()
User identifier string.
|
public EmailUserIdentifier(String email)
UserIdentifier
for email.email
- User's email addresspublic String getUserIdentifier()
UserIdentifier
Examples:
getUserIdentifier
in interface UserIdentifier
public static String computeHash(String email)
email
- email address to convertCopyright © 2010–2017. All rights reserved.