Interface UsernameValidator
-
- All Known Implementing Classes:
DefaultUsernameValidator
public interface UsernameValidator
This validator uses regex to validate usernames. The regex can be configured by a system property along with the error message. By default, the username is assumed to be an email address.- Author:
- Nathan Moore (nathanmoore).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Pattern
getUsernamePattern()
boolean
isValid(String email)
-