Interface AccountControlEvaluator
- All Known Implementing Classes:
ActiveDirectoryAccountControlEvaluator,NoAccountControlEvaluator
public interface AccountControlEvaluator
The interface Account control evaluator.
- Author:
- Christian Bremer
-
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.
-
Method Details
-
isAccountNonExpired
boolean isAccountNonExpired(org.ldaptive.LdapEntry ldapEntry) Indicates whether the user's account has expired. An expired account cannot be authenticated.- Parameters:
ldapEntry- the ldap entry- Returns:
trueif the user's account is valid (ie non-expired),falseif no longer valid (ie expired)
-
isAccountNonLocked
boolean isAccountNonLocked(org.ldaptive.LdapEntry ldapEntry) Indicates whether the user is locked or unlocked. A locked user cannot be authenticated.- Parameters:
ldapEntry- the ldap entry- Returns:
trueif the user is not locked,falseotherwise
-
isCredentialsNonExpired
boolean isCredentialsNonExpired(org.ldaptive.LdapEntry ldapEntry) Indicates whether the user's credentials (password) has expired. Expired credentials prevent authentication.- Parameters:
ldapEntry- the ldap entry- Returns:
trueif the user's credentials are valid (ie non-expired),falseif no longer valid (ie expired)
-
isEnabled
boolean isEnabled(org.ldaptive.LdapEntry ldapEntry) Indicates whether the user is enabled or disabled. A disabled user cannot be authenticated.- Parameters:
ldapEntry- the ldap entry- Returns:
trueif the user is enabled,falseotherwise
-