Class EmailToUsernameResolverByLdapAttribute
java.lang.Object
org.bremersee.spring.security.ldaptive.authentication.EmailToUsernameResolverByLdapAttribute
- All Implemented Interfaces:
EmailToUsernameResolver
public class EmailToUsernameResolverByLdapAttribute
extends Object
implements 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, 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) Gets username by 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, LdaptiveTemplate ldaptiveTemplate) Instantiates a new Email to username resolver by ldap attribute.- Parameters:
properties- the propertiesldaptiveTemplate- the ldaptive template
-
-
Method Details
-
getUsernameByEmail
Description copied from interface:EmailToUsernameResolverGets username by email.- Specified by:
getUsernameByEmailin interfaceEmailToUsernameResolver- Parameters:
email- the email- Returns:
- the username by email
-
areRequiredPropertiesPresent
protected boolean areRequiredPropertiesPresent()Determines whether required properties are present or not.- Returns:
- the boolean
-