Authenticator
BasicAuthenticator
, ClientCertAuthenticator
, DigestAuthenticator
, FormAuthenticator
, SpnegoAuthenticator
public abstract class LoginAuthenticator extends java.lang.Object implements Authenticator
Authenticator.AuthConfiguration, Authenticator.Factory
Modifier and Type | Field | Description |
---|---|---|
protected IdentityService |
_identityService |
|
protected LoginService |
_loginService |
Modifier | Constructor | Description |
---|---|---|
protected |
LoginAuthenticator() |
Modifier and Type | Method | Description |
---|---|---|
LoginService |
getLoginService() |
|
UserIdentity |
login(java.lang.String username,
java.lang.Object password,
ServletRequest request) |
|
void |
prepareRequest(ServletRequest request) |
Called prior to validateRequest.
|
protected HttpSession |
renewSession(HttpServletRequest request,
HttpServletResponse response) |
Change the session id.
|
void |
setConfiguration(Authenticator.AuthConfiguration configuration) |
Configure the Authenticator
|
getAuthMethod, secureResponse, validateRequest
protected LoginService _loginService
protected IdentityService _identityService
public void prepareRequest(ServletRequest request)
Authenticator
prepareRequest
in interface Authenticator
request
- the request to manipulatepublic UserIdentity login(java.lang.String username, java.lang.Object password, ServletRequest request)
public void setConfiguration(Authenticator.AuthConfiguration configuration)
Authenticator
setConfiguration
in interface Authenticator
configuration
- the configurationpublic LoginService getLoginService()
protected HttpSession renewSession(HttpServletRequest request, HttpServletResponse response)
Authenticator.AuthConfiguration.isSessionRenewedOnAuthentication()
returns true.
request
- the requestresponse
- the responseCopyright © 1995–2018 Webtide. All rights reserved.