Package org.apereo.cas.authentication
Class AcceptUsersAuthenticationHandler
java.lang.Object
org.apereo.cas.authentication.AbstractAuthenticationHandler
org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler
org.apereo.cas.authentication.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
-
Field Summary
Fields inherited from interface org.apereo.cas.authentication.AuthenticationHandler
SUCCESSFUL_AUTHENTICATION_HANDLERSFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler
getPasswordEncoder, getPasswordPolicyConfiguration, getPasswordPolicyHandlingStrategy, getPrincipalNameTransformer, setPasswordEncoder, setPasswordPolicyConfiguration, setPasswordPolicyHandlingStrategy, setPrincipalNameTransformer, supports, supportsMethods inherited from class org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
authenticateMethods inherited from class org.apereo.cas.authentication.AbstractAuthenticationHandler
equals, getCredentialSelectionPredicate, getName, getOrder, getPrincipalFactory, getServicesManager, getState, hashCode, setCredentialSelectionPredicate, setStateMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apereo.cas.authentication.AuthenticationHandler
getOrder, getStateMethods inherited from interface org.apereo.cas.util.NamedObject
getNameMethods inherited from interface org.apereo.cas.authentication.PrePostAuthenticationHandler
postAuthenticate, preAuthenticate
-
Constructor Details
-
AcceptUsersAuthenticationHandler
-
AcceptUsersAuthenticationHandler
-
AcceptUsersAuthenticationHandler
-
-
Method Details
-
setUsers
The list of users we will accept.
-