|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.jlan.server.auth.CifsAuthenticator
org.alfresco.filesys.auth.cifs.CifsAuthenticatorBase
public abstract class CifsAuthenticatorBase
CIFS Authenticator Base Class
Base class for Alfresco CIFS authenticator implementations.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
logger
The Constant logger. |
protected MD4PasswordEncoder |
m_md4Encoder
The m_md4 encoder. |
Fields inherited from class org.alfresco.jlan.server.auth.CifsAuthenticator |
---|
GUEST_USERNAME, m_config, m_random |
Fields inherited from interface org.alfresco.jlan.server.auth.ICifsAuthenticator |
---|
AUTH_ACCDISABLED, AUTH_ALLOW, AUTH_BADPASSWORD, AUTH_BADUSER, AUTH_DISALLOW, AUTH_GUEST, AUTH_PASSEXPIRED, LANMAN, NoAccess, NTLM1, NTLM2, ReadOnly, SHARE_MODE, STANDARD_CHALLENGE_LEN, STANDARD_PASSWORD_LEN, USER_MODE, Writeable |
Constructor Summary | |
---|---|
CifsAuthenticatorBase()
Instantiates a new cifs authenticator base. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected void |
checkForAdminUserName(org.alfresco.jlan.server.auth.ClientInfo cInfo)
Check if the user is an administrator user name. |
void |
destroy()
Handle tidy up on container shutdown. |
protected void |
doGuestLogon(org.alfresco.jlan.server.auth.ClientInfo client,
org.alfresco.jlan.server.SrvSession sess)
Logon using the guest user account. |
protected java.lang.Object |
doInTransaction(RetryingTransactionHelper.RetryingTransactionCallback callback)
Does work in a transaction. |
protected AuthenticationComponent |
getAuthenticationComponent()
Return the authentication component. |
protected AuthenticationService |
getAuthenticationService()
Return the authentication service. |
protected AuthorityService |
getAuthorityService()
Return the authority service. |
protected void |
getHomeFolderForUser(org.alfresco.jlan.server.auth.ClientInfo client)
Get the home folder for the user. |
protected NodeService |
getNodeService()
Return the node service. |
protected NLTMAuthenticator |
getNTLMAuthenticator()
Returns an SSO-enabled authentication component. |
protected PersonService |
getPersonService()
Return the person service. |
void |
initialize()
Initialize the authenticator. |
void |
initialize(org.alfresco.jlan.server.config.ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
Initialize the authenticator. |
boolean |
isActive()
Determines whether this bean is active. |
protected java.lang.String |
mapUserNameToPerson(java.lang.String userName)
Map the case insensitive logon name to the internal person object user name. |
void |
setActive(boolean active)
Activates or deactivates the bean. |
void |
setAuthenticationComponent(AuthenticationComponent authenticationComponent)
Sets the authentication component. |
void |
setAuthenticationService(AuthenticationService authenticationService)
Sets the authentication service. |
void |
setAuthorityService(AuthorityService authorityService)
Sets the authority service. |
void |
setCurrentUser(org.alfresco.jlan.server.auth.ClientInfo client)
Set the current authenticated user context for this thread. |
void |
setDiskInterface(org.alfresco.jlan.server.filesys.DiskInterface diskInterface)
Set the filesystem driver for the node service based filesystem. |
void |
setNodeService(NodeService nodeService)
Sets the node service. |
void |
setPersonService(PersonService personService)
Sets the person service. |
void |
setTransactionService(TransactionService transactionService)
Sets the transaction service. |
protected boolean |
validateAuthenticationMode()
Validate that the authentication component supports the required mode. |
Methods inherited from class org.alfresco.jlan.server.auth.CifsAuthenticator |
---|
allowGuest, authenticateShareConnect, authenticateUser, authenticateUserPlainText, closeAuthenticator, convertPassword, generateEncryptedPassword, generateNegotiateResponse, getAccessMode, getAuthContext, getCIFSConfig, getEnabledDialects, getEncryptionKeyLength, getEncryptor, getGuestUserName, getsecurityConfig, getSecurityMode, getServerCapabilities, getStatusAsString, getUserDetails, hasDebug, hasExtendedSecurity, mapClientAddressToDomain, mapUnknownUserToGuest, processSessionSetup, setAccessMode, setAllowGuest, setConfig, setDebug, setExtendedSecurity, setGuestUserName, setMapToGuest, setSecurityMode, toString, validatePassword |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log logger
protected MD4PasswordEncoder m_md4Encoder
Constructor Detail |
---|
public CifsAuthenticatorBase()
Method Detail |
---|
public void setAuthenticationComponent(AuthenticationComponent authenticationComponent)
authenticationComponent
- the authenticationComponent to setpublic void setAuthenticationService(AuthenticationService authenticationService)
authenticationService
- the authenticationService to setpublic void setNodeService(NodeService nodeService)
nodeService
- the nodeService to setpublic void setPersonService(PersonService personService)
personService
- the personService to setpublic void setTransactionService(TransactionService transactionService)
transactionService
- the transactionService to setpublic void setAuthorityService(AuthorityService authorityService)
authorityService
- the authorityService to setpublic void setDiskInterface(org.alfresco.jlan.server.filesys.DiskInterface diskInterface)
diskInterface
- DiskInterfacepublic boolean isActive()
ActivateableBean
isActive
in interface ActivateableBean
true
if this bean is activepublic void setActive(boolean active)
active
- true
if the bean is active and initialization should completepublic void initialize(org.alfresco.jlan.server.config.ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws org.alfresco.jlan.server.config.InvalidConfigurationException
initialize
in class org.alfresco.jlan.server.auth.CifsAuthenticator
config
- ServerConfigurationparams
- ConfigElement
org.alfresco.jlan.server.config.InvalidConfigurationException
- the invalid configuration exception
org.alfresco.jlan.server.config.InvalidConfigurationException
public void initialize() throws org.alfresco.jlan.server.config.InvalidConfigurationException
initialize
in class org.alfresco.jlan.server.auth.CifsAuthenticator
org.alfresco.jlan.server.config.InvalidConfigurationException
- the invalid configuration exception
org.alfresco.jlan.server.config.InvalidConfigurationException
public final void afterPropertiesSet() throws org.alfresco.jlan.server.config.InvalidConfigurationException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
org.alfresco.jlan.server.config.InvalidConfigurationException
protected boolean validateAuthenticationMode()
protected void doGuestLogon(org.alfresco.jlan.server.auth.ClientInfo client, org.alfresco.jlan.server.SrvSession sess)
doGuestLogon
in class org.alfresco.jlan.server.auth.CifsAuthenticator
client
- ClientInfosess
- SrvSessionprotected final void getHomeFolderForUser(org.alfresco.jlan.server.auth.ClientInfo client)
client
- ClientInfoprotected final java.lang.String mapUserNameToPerson(java.lang.String userName)
userName
- String
public void setCurrentUser(org.alfresco.jlan.server.auth.ClientInfo client)
setCurrentUser
in interface org.alfresco.jlan.server.auth.ICifsAuthenticator
setCurrentUser
in class org.alfresco.jlan.server.auth.CifsAuthenticator
client
- ClientInfoprotected final AuthenticationComponent getAuthenticationComponent()
protected final NLTMAuthenticator getNTLMAuthenticator()
protected final AuthenticationService getAuthenticationService()
protected final NodeService getNodeService()
protected final PersonService getPersonService()
protected final AuthorityService getAuthorityService()
protected final void checkForAdminUserName(org.alfresco.jlan.server.auth.ClientInfo cInfo)
cInfo
- ClientInfoprotected java.lang.Object doInTransaction(RetryingTransactionHelper.RetryingTransactionCallback callback)
callback
- a callback that does the work
null
if not applicablepublic void destroy() throws java.lang.Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
java.lang.Exception
- the exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |