|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.authentication.AbstractAuthenticationManager
public abstract class AbstractAuthenticationManager
An abstract implementation of the AuthenticationManager
.
Constructor Summary | |
---|---|
AbstractAuthenticationManager()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAuthenticationManager()
Method Detail |
---|
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 AuthenticationManager
authRequest
- the authentication request object
AuthenticationException
- 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 object
AuthenticationException
- if authentication failspublic void setClearExtraInformation(boolean clearExtraInformation)
AuthenticationException.getExtraInformation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |