public abstract class AbstractAuthenticationManager extends 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
An implementation of the 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 AuthenticationManager
authRequest
- the authentication request objectAuthenticationException
- if authentication failsprotected abstract Authentication doAuthentication(Authentication authentication) throws AuthenticationException
Concrete implementations of this class override this method to provide the authentication service.
The contract for this method is documented in the AuthenticationManager.authenticate(Authentication)
.
authentication
- the authentication request objectAuthenticationException
- if authentication failspublic void setClearExtraInformation(boolean clearExtraInformation)
Copyright © 2019. All rights reserved.