org.alfresco.web.sharepoint.auth
Class BasicAuthenticationHandler
java.lang.Object
org.alfresco.web.sharepoint.auth.AbstractAuthenticationHandler
org.alfresco.web.sharepoint.auth.BasicAuthenticationHandler
- All Implemented Interfaces:
- org.alfresco.repo.management.subsystems.ActivateableBean, org.alfresco.repo.webdav.auth.AuthenticationDriver, org.alfresco.repo.webdav.auth.SharepointConstants
public class BasicAuthenticationHandler
- extends AbstractAuthenticationHandler
- implements org.alfresco.repo.webdav.auth.SharepointConstants
BASIC web authentication implementation.
Fields inherited from interface org.alfresco.repo.webdav.auth.SharepointConstants |
USER_SESSION_ATTRIBUTE |
Method Summary |
boolean |
authenticateRequest(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
java.lang.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicAuthenticationHandler
public BasicAuthenticationHandler()
authenticateRequest
public boolean authenticateRequest(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Specified by:
authenticateRequest
in interface org.alfresco.repo.webdav.auth.AuthenticationDriver
- Throws:
java.io.IOException
javax.servlet.ServletException
isUserAuthenticated
public boolean isUserAuthenticated(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request)
throws java.io.IOException,
javax.servlet.ServletException
- Returns
true
if the user is authenticated and their details are cached in the session
- Parameters:
context
- the servlet contextrequest
- the servlet request
- Returns:
true
, if the user is authenticated
- Throws:
java.io.IOException
- Signals that an I/O exception has occurred.
javax.servlet.ServletException
- On other errors.
getWWWAuthenticate
public java.lang.String getWWWAuthenticate()
- Description copied from class:
AbstractAuthenticationHandler
- Returns the value of 'WWW-Authenticate' http header that determine what type of authentication to use by
client.
- Specified by:
getWWWAuthenticate
in class AbstractAuthenticationHandler
- Returns:
- value
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.