public class UsernamePasswordWrapperAuthenticationHandler extends AbstractWrapperAuthenticationHandler<org.apereo.cas.authentication.UsernamePasswordCredential,org.pac4j.core.credentials.UsernamePasswordCredentials>
| Modifier and Type | Field and Description |
|---|---|
protected org.pac4j.core.credentials.authenticator.Authenticator<org.pac4j.core.credentials.UsernamePasswordCredentials> |
authenticator
The underlying pac4j authenticator.
|
profileCreatorprincipalFactory, servicesManager| Constructor and Description |
|---|
UsernamePasswordWrapperAuthenticationHandler(java.lang.String name,
org.apereo.cas.services.ServicesManager servicesManager,
org.apereo.cas.authentication.principal.PrincipalFactory principalFactory,
java.lang.Integer order) |
| Modifier and Type | Method and Description |
|---|---|
protected org.pac4j.core.credentials.UsernamePasswordCredentials |
convertToPac4jCredentials(org.apereo.cas.authentication.UsernamePasswordCredential casCredential)
Convert a CAS credential into a pac4j credentials to play the authentication.
|
protected org.pac4j.core.credentials.authenticator.Authenticator<org.pac4j.core.credentials.UsernamePasswordCredentials> |
getAuthenticator(org.apereo.cas.authentication.Credential credential)
Gets authenticator.
|
protected java.lang.Class<org.apereo.cas.authentication.UsernamePasswordCredential> |
getCasCredentialsType()
Return the CAS credential supported by this handler (to be converted in a pac4j credentials
by
AbstractWrapperAuthenticationHandler.convertToPac4jCredentials(Credential)). |
org.springframework.security.crypto.password.PasswordEncoder |
getPasswordEncoder() |
org.apereo.cas.authentication.handler.PrincipalNameTransformer |
getPrincipalNameTransformer() |
void |
setAuthenticator(org.pac4j.core.credentials.authenticator.Authenticator<org.pac4j.core.credentials.UsernamePasswordCredentials> authenticator) |
void |
setPasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder) |
void |
setPrincipalNameTransformer(org.apereo.cas.authentication.handler.PrincipalNameTransformer principalNameTransformer) |
doAuthentication, getProfileCreator, getWebContext, setProfileCreator, supportscreateResult, setTypedIdUsedauthenticate, createHandlerResultgetName, getOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected org.pac4j.core.credentials.authenticator.Authenticator<org.pac4j.core.credentials.UsernamePasswordCredentials> authenticator
public UsernamePasswordWrapperAuthenticationHandler(java.lang.String name,
org.apereo.cas.services.ServicesManager servicesManager,
org.apereo.cas.authentication.principal.PrincipalFactory principalFactory,
java.lang.Integer order)
protected org.pac4j.core.credentials.UsernamePasswordCredentials convertToPac4jCredentials(org.apereo.cas.authentication.UsernamePasswordCredential casCredential)
throws java.security.GeneralSecurityException,
org.apereo.cas.authentication.PreventedException
AbstractWrapperAuthenticationHandlerconvertToPac4jCredentials in class AbstractWrapperAuthenticationHandler<org.apereo.cas.authentication.UsernamePasswordCredential,org.pac4j.core.credentials.UsernamePasswordCredentials>casCredential - the CAS credentialjava.security.GeneralSecurityException - On authentication failure.org.apereo.cas.authentication.PreventedException - On the indeterminate case when authentication is prevented.protected org.pac4j.core.credentials.authenticator.Authenticator<org.pac4j.core.credentials.UsernamePasswordCredentials> getAuthenticator(org.apereo.cas.authentication.Credential credential)
AbstractWrapperAuthenticationHandlergetAuthenticator in class AbstractWrapperAuthenticationHandler<org.apereo.cas.authentication.UsernamePasswordCredential,org.pac4j.core.credentials.UsernamePasswordCredentials>credential - the credentialpublic void setAuthenticator(org.pac4j.core.credentials.authenticator.Authenticator<org.pac4j.core.credentials.UsernamePasswordCredentials> authenticator)
protected java.lang.Class<org.apereo.cas.authentication.UsernamePasswordCredential> getCasCredentialsType()
AbstractWrapperAuthenticationHandlerAbstractWrapperAuthenticationHandler.convertToPac4jCredentials(Credential)).getCasCredentialsType in class AbstractWrapperAuthenticationHandler<org.apereo.cas.authentication.UsernamePasswordCredential,org.pac4j.core.credentials.UsernamePasswordCredentials>public org.springframework.security.crypto.password.PasswordEncoder getPasswordEncoder()
public void setPasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
public org.apereo.cas.authentication.handler.PrincipalNameTransformer getPrincipalNameTransformer()
public void setPrincipalNameTransformer(org.apereo.cas.authentication.handler.PrincipalNameTransformer principalNameTransformer)