Class AcceptUsersAuthenticationHandler

All Implemented Interfaces:
org.apereo.cas.authentication.AuthenticationHandler, org.apereo.cas.authentication.PrePostAuthenticationHandler, org.apereo.cas.util.NamedObject, org.springframework.core.Ordered

@Monitorable public class AcceptUsersAuthenticationHandler extends AbstractUsernamePasswordAuthenticationHandler
Handler that contains a list of valid users and passwords. Useful if there is a small list of users that we wish to allow. An example use case may be if there are existing handlers that make calls to LDAP, etc. but there is a need for additional users we don't want in LDAP. With the chain of command processing of handlers, this handler could be added to check before LDAP and provide the list of additional users. The list of acceptable users is stored in a map. The key of the map is the username and the password is the object retrieved from doing map.get(KEY).
Since:
3.0.0
  • Constructor Details

    • AcceptUsersAuthenticationHandler

      public AcceptUsersAuthenticationHandler(Map<String,String> users)
    • AcceptUsersAuthenticationHandler

      public AcceptUsersAuthenticationHandler(String name)
    • AcceptUsersAuthenticationHandler

      public AcceptUsersAuthenticationHandler(String name, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory, Integer order, Map<String,String> users)
  • Method Details

    • setUsers

      public void setUsers(Map<String,String> users)
      The list of users we will accept.