public abstract class AbstractAuthenticationManager extends java.lang.Object implements AuthenticationManager
AuthenticationManager.| Constructor and Description |
|---|
AbstractAuthenticationManager() |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
authenticate(Authentication authRequest)
An implementation of the
authenticate method that calls the abstract method
doAuthenticatation to do its work. |
protected abstract Authentication |
doAuthentication(Authentication authentication)
Concrete implementations of this class override this method to provide the authentication service.
|
void |
setClearExtraInformation(boolean clearExtraInformation)
If set to true, the extraInformation set on an AuthenticationException will be cleared
before rethrowing it.
|
public final Authentication authenticate(Authentication authRequest) throws AuthenticationException
authenticate method that calls the abstract method
doAuthenticatation to do its work.
If doAuthenticate throws an AuthenticationException then the exception is populated
with the failed Authentication object that failed.
authenticate in interface AuthenticationManagerauthRequest - the authentication request objectAuthenticationException - if authentication failsprotected abstract Authentication doAuthentication(Authentication authentication) throws AuthenticationException
The contract for this method is documented in the
AuthenticationManager.authenticate(Authentication).
authentication - the authentication request objectAuthenticationException - if authentication failspublic void setClearExtraInformation(boolean clearExtraInformation)