T - AuthenticationToken typepublic abstract class AbstractAuthenticationManagerAuthenticator<T extends AuthenticationToken> extends Object implements Authenticator<T>
AuthenticationManager based Authenticators.Authenticator.MessageAuthenticator| Constructor and Description |
|---|
AbstractAuthenticationManagerAuthenticator(org.springframework.security.authentication.AuthenticationManager authenticationManager)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Authentication |
authenticate(T authenticationToken)
Attempts to perform authentication using given
AuthenticationToken. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, getTokenTypepublic AbstractAuthenticationManagerAuthenticator(org.springframework.security.authentication.AuthenticationManager authenticationManager)
authenticationManager - Spring Security AuthenticationManager (not null)public Authentication authenticate(T authenticationToken) throws AuthenticationException
AuthenticatorAuthenticationToken.
If the authentication is successful, an Authentication instance is returned that represents the user's
account data and provides authorization operations.
If authentication is not successful, a suitable exception should be thrown. See the specific exceptions listed below for builtin available authentication errors.
authenticate in interface Authenticator<T extends AuthenticationToken>authenticationToken - the authentication request tokenAuthenticationException - Authentication failedDisabledAccountException,
LockedAccountException,
UnknownAccountException,
ExpiredCredentialsException,
InvalidCredentialsException,
UnsupportedTokenException,
UnexpectedAuthenticationExceptionCopyright © 2019 The Holon Platform. All rights reserved.