org.alfresco.web.sharepoint.auth.ntlm
Class NtlmAuthenticationHandler
java.lang.Object
org.alfresco.web.sharepoint.auth.AbstractAuthenticationHandler
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NtlmAuthenticationHandler
public NtlmAuthenticationHandler()
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 requestresponse
- http responsemapper
- an object capable of determining which users are site membersalfrescoContext
- 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.