Interface Authenticator
- All Known Implementing Classes:
AbstractProfileService
,InMemoryProfileService
,LocalCachingAuthenticator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An authenticator is responsible for validating
Credentials
and should throw a CredentialsException
if the authentication fails.- Since:
- 1.7.0
- Author:
- Jerome Leleu
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvalidate
(Credentials credentials, WebContext context, SessionStore sessionStore) Validate the credentials.
-
Field Details
-
ALWAYS_VALIDATE
-
-
Method Details
-
validate
Optional<Credentials> validate(Credentials credentials, WebContext context, SessionStore sessionStore) Validate the credentials. It should throw aCredentialsException
in case of failure.- Parameters:
credentials
- the given credentialscontext
- the web contextsessionStore
- the session store- Returns:
- the credentials
-