public abstract class AbstractAuthenticationHandler extends Object implements AuthenticationDriver, ActivateableBean
Abstract implementation of web authentication.
Modifier and Type | Field and Description |
---|---|
protected AuthenticationService |
authenticationService |
protected org.apache.commons.logging.Log |
logger |
protected PersonService |
personService |
AUTHENTICATION_USER
Constructor and Description |
---|
AbstractAuthenticationHandler() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getWWWAuthenticate()
Returns the value of 'WWW-Authenticate' http header that determine what type of authentication to use by
client.
|
boolean |
isActive()
Determines whether this bean is active.
|
void |
restartLoginChallenge(ServletContext context,
HttpServletRequest request,
HttpServletResponse response)
Send a status 401 response that will restart the log in handshake.
|
void |
setActive(boolean isActive) |
void |
setAuthenticationService(AuthenticationService authenticationService) |
void |
setPersonService(PersonService personService) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticateRequest
protected org.apache.commons.logging.Log logger
protected AuthenticationService authenticationService
protected PersonService personService
public void setAuthenticationService(AuthenticationService authenticationService)
public void setPersonService(PersonService personService)
public void setActive(boolean isActive)
public boolean isActive()
ActivateableBean
isActive
in interface ActivateableBean
true
if this bean is activepublic abstract String getWWWAuthenticate()
public void restartLoginChallenge(ServletContext context, HttpServletRequest request, HttpServletResponse response)
AuthenticationDriver
restartLoginChallenge
in interface AuthenticationDriver
context
- the contextrequest
- http requestresponse
- http responseCopyright © 2005–2017 Alfresco Software. All rights reserved.