Class NoAccountControlEvaluator

java.lang.Object
org.bremersee.spring.security.ldaptive.authentication.provider.NoAccountControlEvaluator
All Implemented Interfaces:
AccountControlEvaluator

public class NoAccountControlEvaluator extends Object implements AccountControlEvaluator
Account is always enabled, non-locked and not expired.
Author:
Christian Bremer
  • Constructor Details

    • NoAccountControlEvaluator

      public NoAccountControlEvaluator()
      Instantiates a new no account control evaluator.
  • Method Details

    • isAccountNonExpired

      public boolean isAccountNonExpired(org.ldaptive.LdapEntry ldapEntry)
      Description copied from interface: AccountControlEvaluator
      Indicates whether the user's account has expired. An expired account cannot be authenticated.
      Specified by:
      isAccountNonExpired in interface AccountControlEvaluator
      Parameters:
      ldapEntry - the ldap entry
      Returns:
      true if the user's account is valid (ie non-expired), false if no longer valid (ie expired)
    • isAccountNonLocked

      public boolean isAccountNonLocked(org.ldaptive.LdapEntry ldapEntry)
      Description copied from interface: AccountControlEvaluator
      Indicates whether the user is locked or unlocked. A locked user cannot be authenticated.
      Specified by:
      isAccountNonLocked in interface AccountControlEvaluator
      Parameters:
      ldapEntry - the ldap entry
      Returns:
      true if the user is not locked, false otherwise
    • isCredentialsNonExpired

      public boolean isCredentialsNonExpired(org.ldaptive.LdapEntry ldapEntry)
      Description copied from interface: AccountControlEvaluator
      Indicates whether the user's credentials (password) has expired. Expired credentials prevent authentication.
      Specified by:
      isCredentialsNonExpired in interface AccountControlEvaluator
      Parameters:
      ldapEntry - the ldap entry
      Returns:
      true if the user's credentials are valid (ie non-expired), false if no longer valid (ie expired)
    • isEnabled

      public boolean isEnabled(org.ldaptive.LdapEntry ldapEntry)
      Description copied from interface: AccountControlEvaluator
      Indicates whether the user is enabled or disabled. A disabled user cannot be authenticated.
      Specified by:
      isEnabled in interface AccountControlEvaluator
      Parameters:
      ldapEntry - the ldap entry
      Returns:
      true if the user is enabled, false otherwise