public interface AuthenticationProvider
Modifier and Type | Method and Description |
---|---|
boolean |
doAuthenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
AuthenticationChain authenticationChain,
String username,
String password)
Execute authentication for given username and password
|
boolean |
isEnabled()
Check if authentication provider is enabled
|
void |
setEnabled(boolean enabled)
Enable or disable authentication provider
|
boolean doAuthenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AuthenticationChain authenticationChain, String username, String password) throws AuthenticationSystemException, BadCredentialsException, UserNotFoundException
request
- HTTP Requestresponse
- HTTP ResponseauthenticationChain
- Authentication chainusername
- username to authenticatepassword
- passwordAuthenticationSystemException
- general authentication system errorBadCredentialsException
- given credentials are badUserNotFoundException
- username not found in the list of active usersboolean isEnabled()
void setEnabled(boolean enabled)
enabled
- true to enable, false to disableCopyright © 2023 CrafterCMS. All rights reserved.