Class ActiveDirectoryAccountControlEvaluator
java.lang.Object
org.bremersee.spring.security.ldaptive.authentication.provider.ActiveDirectoryAccountControlEvaluator
- All Implemented Interfaces:
AccountControlEvaluator
public class ActiveDirectoryAccountControlEvaluator
extends Object
implements AccountControlEvaluator
Evaluator of the ldap attributes
userAccountControl and accountExpires of an
Active Directory.- Author:
- Christian Bremer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAccountNonExpired(org.ldaptive.LdapEntry ldapEntry) Indicates whether the user's account has expired.booleanisAccountNonLocked(org.ldaptive.LdapEntry ldapEntry) Indicates whether the user is locked or unlocked.booleanisCredentialsNonExpired(org.ldaptive.LdapEntry ldapEntry) Indicates whether the user's credentials (password) has expired.booleanisEnabled(org.ldaptive.LdapEntry ldapEntry) Indicates whether the user is enabled or disabled.
-
Constructor Details
-
ActiveDirectoryAccountControlEvaluator
public ActiveDirectoryAccountControlEvaluator()
-
-
Method Details
-
isAccountNonExpired
public boolean isAccountNonExpired(org.ldaptive.LdapEntry ldapEntry) Description copied from interface:AccountControlEvaluatorIndicates whether the user's account has expired. An expired account cannot be authenticated.- Specified by:
isAccountNonExpiredin interfaceAccountControlEvaluator- Parameters:
ldapEntry- the ldap entry- Returns:
trueif the user's account is valid (ie non-expired),falseif no longer valid (ie expired)
-
isAccountNonLocked
public boolean isAccountNonLocked(org.ldaptive.LdapEntry ldapEntry) Description copied from interface:AccountControlEvaluatorIndicates whether the user is locked or unlocked. A locked user cannot be authenticated.- Specified by:
isAccountNonLockedin interfaceAccountControlEvaluator- Parameters:
ldapEntry- the ldap entry- Returns:
trueif the user is not locked,falseotherwise
-
isCredentialsNonExpired
public boolean isCredentialsNonExpired(org.ldaptive.LdapEntry ldapEntry) Description copied from interface:AccountControlEvaluatorIndicates whether the user's credentials (password) has expired. Expired credentials prevent authentication.- Specified by:
isCredentialsNonExpiredin interfaceAccountControlEvaluator- Parameters:
ldapEntry- the ldap entry- Returns:
trueif the user's credentials are valid (ie non-expired),falseif no longer valid (ie expired)
-
isEnabled
public boolean isEnabled(org.ldaptive.LdapEntry ldapEntry) Description copied from interface:AccountControlEvaluatorIndicates whether the user is enabled or disabled. A disabled user cannot be authenticated.- Specified by:
isEnabledin interfaceAccountControlEvaluator- Parameters:
ldapEntry- the ldap entry- Returns:
trueif the user is enabled,falseotherwise
-