public interface AuthenticationHandler
| Modifier and Type | Method and Description |
|---|---|
HandlerResult |
authenticate(Credential credential)
Authenticates the given credential.
|
String |
getName()
Gets a unique name for this authentication handler within the Spring context that contains it.
|
boolean |
supports(Credential credential)
Determines whether the handler has the capability to authenticate the given credential.
|
HandlerResult authenticate(Credential credential) throws GeneralSecurityException, PreventedException
HandlerResultGeneralSecurityExceptionPreventedExceptioncredential - The credential to authenticate.PrincipalGeneralSecurityException - On authentication failures where the root cause is security related,
e.g. invalid credential. Implementing classes SHOULD be as specific as possible in communicating the reason for
authentication failure. Recommendations for common cases:
FailedLoginExceptionCredentialExpiredExceptionAccountExpiredExceptionAccountLockedExceptionAccountNotFoundExceptionInvalidLoginTimeExceptionInvalidLoginLocationExceptionCertificateExpiredExceptionPreventedException - On errors that prevented authentication from occurring. Implementing classes SHOULD
take care to populate the cause, where applicable, with the error that prevented authentication.boolean supports(Credential credential)
authenticate(Credential) method MUST be capable of processing a given credential if
supports returns true on the same credential.credential - The credential to check.String getName()
Copyright © 2004-2015 Apereo. All Rights Reserved.