public class BasicAuthenticationHandler extends AbstractAuthenticationHandler implements org.alfresco.repo.webdav.auth.SharepointConstants
BASIC web authentication implementation.
| Modifier and Type | Field and Description |
|---|---|
protected org.alfresco.repo.security.authentication.AuthenticationComponent |
authenticationComponent |
protected org.alfresco.repo.security.authentication.external.RemoteUserMapper |
remoteUserMapper |
authenticationService, logger, personService| Constructor and Description |
|---|
BasicAuthenticationHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticateRequest(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
getWWWAuthenticate()
Returns the value of 'WWW-Authenticate' http header that determine what type of authentication to use by
client.
|
boolean |
isUserAuthenticated(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request)
Returns
true if the user is authenticated and their details are cached in the session |
void |
setAuthenticationComponent(org.alfresco.repo.security.authentication.AuthenticationComponent authenticationComponent) |
void |
setAuthenticationListener(org.alfresco.repo.web.auth.AuthenticationListener authenticationListener)
Set the authentication listener
|
void |
setRemoteUserMapper(org.alfresco.repo.security.authentication.external.RemoteUserMapper remoteUserMapper) |
isActive, restartLoginChallenge, setActive, setAuthenticationService, setPersonServiceprotected org.alfresco.repo.security.authentication.external.RemoteUserMapper remoteUserMapper
protected org.alfresco.repo.security.authentication.AuthenticationComponent authenticationComponent
public void setAuthenticationListener(org.alfresco.repo.web.auth.AuthenticationListener authenticationListener)
public boolean authenticateRequest(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
authenticateRequest in interface org.alfresco.repo.webdav.auth.AuthenticationDriverIOExceptionjavax.servlet.ServletExceptionpublic boolean isUserAuthenticated(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request)
throws IOException,
javax.servlet.ServletException
true if the user is authenticated and their details are cached in the sessioncontext - the servlet contextrequest - the servlet requesttrue, if the user is authenticatedIOException - Signals that an I/O exception has occurred.javax.servlet.ServletException - On other errors.public String getWWWAuthenticate()
AbstractAuthenticationHandlergetWWWAuthenticate in class AbstractAuthenticationHandlerpublic void setRemoteUserMapper(org.alfresco.repo.security.authentication.external.RemoteUserMapper remoteUserMapper)
public void setAuthenticationComponent(org.alfresco.repo.security.authentication.AuthenticationComponent authenticationComponent)
Copyright © 2005–2018 Alfresco Software. All rights reserved.