Interface EmailToUsernameResolver
- All Known Implementing Classes:
EmailToUsernameResolverByLdapAttribute
public interface EmailToUsernameResolver
The email to username resolver.
- Author:
- Christian Bremer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringEmail regex from emailregex.com (RFC 5322 Official Standard). -
Method Summary
Modifier and TypeMethodDescriptiongetUsernameByEmail(String email) Gets username by email.default booleanisValidEmail(String email) Checks whether the given email is a valid email address.
-
Field Details
-
EMAIL_REGEX
Email regex from emailregex.com (RFC 5322 Official Standard).- See Also:
-
-
Method Details
-
getUsernameByEmail
Gets username by email.- Parameters:
email- the email- Returns:
- the username by email
-
isValidEmail
Checks whether the given email is a valid email address.- Parameters:
email- the email- Returns:
- the boolean
-