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 Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.logging.LogThe Logger.Fields inherited from interface org.bremersee.spring.security.core.EmailToUsernameResolver
EMAIL_REGEX -
Constructor Summary
ConstructorsConstructorDescriptionEmailToUsernameResolverByLdapAttribute(LdaptiveAuthenticationProperties properties, org.bremersee.ldaptive.LdaptiveTemplate ldaptiveTemplate) Instantiates a new Email to username resolver by ldap attribute. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDetermines whether required properties are present or not.getUsernameByEmail(String email) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bremersee.spring.security.core.EmailToUsernameResolver
isValidEmail
-
Field Details
-
logger
protected final org.apache.commons.logging.Log loggerThe 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 propertiesldaptiveTemplate- the ldaptive template
-
-
Method Details
-
getUsernameByEmail
- Specified by:
getUsernameByEmailin interfaceorg.bremersee.spring.security.core.EmailToUsernameResolver
-
areRequiredPropertiesPresent
protected boolean areRequiredPropertiesPresent()Determines whether required properties are present or not.- Returns:
- the boolean
-