Interface EmailToUsernameResolver

All Known Implementing Classes:
EmailToUsernameResolverByLdapAttribute

public interface EmailToUsernameResolver
The email to username resolver.
Author:
Christian Bremer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Email regex from emailregex.com (RFC 5322 Official Standard).
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets username by email.
    default boolean
    Checks whether the given email is a valid email address.
  • Field Details

  • Method Details

    • getUsernameByEmail

      Optional<String> getUsernameByEmail(String email)
      Gets username by email.
      Parameters:
      email - the email
      Returns:
      the username by email
    • isValidEmail

      default boolean isValidEmail(String email)
      Checks whether the given email is a valid email address.
      Parameters:
      email - the email
      Returns:
      the boolean