public class BindModeSearchDatabaseAuthenticationHandler extends AbstractJdbcUsernamePasswordAuthenticationHandler
passwordPolicyHandlingStrategy
credentialSelectionPredicate, principalFactory, servicesManager
SUCCESSFUL_AUTHENTICATION_HANDLERS
Constructor and Description |
---|
BindModeSearchDatabaseAuthenticationHandler(java.lang.String name,
ServicesManager servicesManager,
PrincipalFactory principalFactory,
java.lang.Integer order,
javax.sql.DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
protected AuthenticationHandlerExecutionResult |
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.
|
getDataSource, getJdbcTemplate, getNamedJdbcTemplate
doAuthentication, matches, supports
authenticate, createHandlerResult, createHandlerResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postAuthenticate, preAuthenticate
getName, getOrder
public BindModeSearchDatabaseAuthenticationHandler(java.lang.String name, ServicesManager servicesManager, PrincipalFactory principalFactory, java.lang.Integer order, javax.sql.DataSource dataSource)
protected AuthenticationHandlerExecutionResult authenticateUsernamePasswordInternal(UsernamePasswordCredential credential, java.lang.String originalPassword) throws java.security.GeneralSecurityException, PreventedException
AbstractUsernamePasswordAuthenticationHandler
authenticateUsernamePasswordInternal
in class AbstractUsernamePasswordAuthenticationHandler
credential
- the credential object bearing the transformed username and password.originalPassword
- original password from credential before password encodingjava.security.GeneralSecurityException
- On authentication failure.PreventedException
- On the indeterminate case when authentication is prevented.