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 Detail

      • getUsernamePattern

        Pattern getUsernamePattern()
      • isValid

        boolean isValid​(String email)