Class EmailToUsernameResolverByLdapAttribute

java.lang.Object
org.bremersee.spring.security.ldaptive.authentication.EmailToUsernameResolverByLdapAttribute
All Implemented Interfaces:
org.bremersee.spring.security.core.EmailToUsernameResolver

public class EmailToUsernameResolverByLdapAttribute extends Object implements org.bremersee.spring.security.core.EmailToUsernameResolver
The email to username resolver by ldap attribute.
Author:
Christian Bremer
  • Field Details

    • logger

      protected final org.apache.commons.logging.Log logger
      The Logger.
  • Constructor Details

    • EmailToUsernameResolverByLdapAttribute

      public EmailToUsernameResolverByLdapAttribute(LdaptiveAuthenticationProperties properties, org.bremersee.ldaptive.LdaptiveTemplate ldaptiveTemplate)
      Instantiates a new Email to username resolver by ldap attribute.
      Parameters:
      properties - the properties
      ldaptiveTemplate - the ldaptive template
  • Method Details

    • getUsernameByEmail

      public Optional<String> getUsernameByEmail(String email)
      Specified by:
      getUsernameByEmail in interface org.bremersee.spring.security.core.EmailToUsernameResolver
    • areRequiredPropertiesPresent

      protected boolean areRequiredPropertiesPresent()
      Determines whether required properties are present or not.
      Returns:
      the boolean