org.alfresco.web.sharepoint.auth
Class BasicAuthenticationHandler

java.lang.Object
  extended by org.alfresco.web.sharepoint.auth.AbstractAuthenticationHandler
      extended by org.alfresco.web.sharepoint.auth.BasicAuthenticationHandler
All Implemented Interfaces:
org.alfresco.repo.management.subsystems.ActivateableBean, AuthenticationHandler

public class BasicAuthenticationHandler
extends AbstractAuthenticationHandler

BASIC web authentication implementation.


Field Summary
 
Fields inherited from class org.alfresco.web.sharepoint.auth.AbstractAuthenticationHandler
authenticationService, logger, personService
 
Fields inherited from interface org.alfresco.web.sharepoint.auth.AuthenticationHandler
BASIC_START, HEADER_AUTHORIZATION, HEADER_WWW_AUTHENTICATE, NTLM_START, USER_SESSION_ATTRIBUTE
 
Constructor Summary
BasicAuthenticationHandler()
           
 
Method Summary
 org.alfresco.repo.SessionUser authenticateRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SiteMemberMapper mapper, java.lang.String alfrescoContext)
          Authenticate user based on information in http request such as Authorization header or else.
 java.lang.String getWWWAuthenticate()
          Returns the value of 'WWW-Authenticate' http header that determine what type of authentication to use by client.
 
Methods inherited from class org.alfresco.web.sharepoint.auth.AbstractAuthenticationHandler
forceClientToPromptLogonDetails, isActive, setActive, setAuthenticationService, setPersonService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAuthenticationHandler

public BasicAuthenticationHandler()
Method Detail

authenticateRequest

public org.alfresco.repo.SessionUser authenticateRequest(javax.servlet.http.HttpServletRequest request,
                                                         javax.servlet.http.HttpServletResponse response,
                                                         SiteMemberMapper mapper,
                                                         java.lang.String alfrescoContext)
Description copied from interface: AuthenticationHandler
Authenticate user based on information in http request such as Authorization header or else.

Parameters:
request - http request
response - http response
mapper - an object capable of determining which users are site members
alfrescoContext - deployment context of alfresco application
Returns:
SessionUser information about currently loged in user or null.

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.