public class AcceptUsersAuthenticationHandler extends AbstractUsernamePasswordAuthenticationHandler
principalFactory, servicesManager| Constructor and Description |
|---|
AcceptUsersAuthenticationHandler(java.lang.String name)
Instantiates a new Accept users authentication handler.
|
AcceptUsersAuthenticationHandler(java.lang.String name,
org.apereo.cas.services.ServicesManager servicesManager,
org.apereo.cas.authentication.principal.PrincipalFactory principalFactory,
java.lang.Integer order,
java.util.Map<java.lang.String,java.lang.String> users)
Instantiates a new Accept users authentication handler.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apereo.cas.authentication.HandlerResult |
authenticateUsernamePasswordInternal(UsernamePasswordCredential credential,
java.lang.String originalPassword)
Authenticates a username/password credential by an arbitrary strategy with extra parameter original credential password before
encoding password.
|
void |
setUsers(java.util.Map<java.lang.String,java.lang.String> users) |
doAuthentication, getPasswordPolicyConfiguration, matches, setCredentialSelectionPredicate, setPasswordEncoder, setPasswordPolicyConfiguration, setPrincipalNameTransformer, supportsauthenticate, createHandlerResultgetName, getOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic AcceptUsersAuthenticationHandler(java.lang.String name)
name - the namepublic AcceptUsersAuthenticationHandler(java.lang.String name,
org.apereo.cas.services.ServicesManager servicesManager,
org.apereo.cas.authentication.principal.PrincipalFactory principalFactory,
java.lang.Integer order,
java.util.Map<java.lang.String,java.lang.String> users)
name - the nameservicesManager - the services managerprincipalFactory - the principal factoryorder - the orderusers - the usersprotected org.apereo.cas.authentication.HandlerResult authenticateUsernamePasswordInternal(UsernamePasswordCredential credential, java.lang.String originalPassword) throws java.security.GeneralSecurityException, org.apereo.cas.authentication.PreventedException
AbstractUsernamePasswordAuthenticationHandlerauthenticateUsernamePasswordInternal in class AbstractUsernamePasswordAuthenticationHandlercredential - the credential object bearing the transformed username and password.originalPassword - original password from credential before password encodingjava.security.GeneralSecurityException - On authentication failure.org.apereo.cas.authentication.PreventedException - On the indeterminate case when authentication is prevented.public void setUsers(java.util.Map<java.lang.String,java.lang.String> users)
users - The users to set.