org.alfresco.web.sharepoint.auth.ntlm
Class NtlmAuthenticationHandler

java.lang.Object
  extended by org.alfresco.web.sharepoint.auth.AbstractAuthenticationHandler
      extended by org.alfresco.web.sharepoint.auth.ntlm.NtlmAuthenticationHandler
All Implemented Interfaces:
org.alfresco.repo.management.subsystems.ActivateableBean, AuthenticationHandler, org.springframework.beans.factory.InitializingBean

public class NtlmAuthenticationHandler
extends AbstractAuthenticationHandler
implements org.springframework.beans.factory.InitializingBean

NTLM SSO 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
NtlmAuthenticationHandler()
           
 
Method Summary
 void afterPropertiesSet()
           
 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.
protected  java.lang.String getMD4Hash(java.lang.String userName)
           
 java.lang.String getWWWAuthenticate()
          Returns the value of 'WWW-Authenticate' http header that determine what type of authentication to use by client.
 void setAuthenticationComponent(org.alfresco.repo.security.authentication.ntlm.NLTMAuthenticator authenticationComponent)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setTransactionService(org.alfresco.service.transaction.TransactionService transactionService)
           
 
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

NtlmAuthenticationHandler

public NtlmAuthenticationHandler()
Method Detail

setAuthenticationComponent

public void setAuthenticationComponent(org.alfresco.repo.security.authentication.ntlm.NLTMAuthenticator authenticationComponent)

setTransactionService

public void setTransactionService(org.alfresco.service.transaction.TransactionService transactionService)

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

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.

Specified by:
authenticateRequest in interface AuthenticationHandler
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

getMD4Hash

protected java.lang.String getMD4Hash(java.lang.String userName)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.