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.
@FunctionalInterface public interface Authenticator
An authenticator is responsible for validatingCredentials
and should throw aCredentialsException
if the authentication fails.- Since:
- 1.7.0
- Author:
- Jerome Leleu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
validate(Credentials credentials, WebContext context, SessionStore sessionStore)
Validate the credentials.
-
-
-
Method Detail
-
validate
void 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
-
-