Package org.alfresco.filesys.auth.ftp
Class PassthruFtpAuthenticator
- java.lang.Object
-
- org.alfresco.filesys.auth.ftp.FTPAuthenticatorBase
-
- org.alfresco.filesys.auth.ftp.PassthruFtpAuthenticator
-
- All Implemented Interfaces:
org.alfresco.jlan.ftp.FTPAuthenticator,ActivateableBean,org.springframework.beans.factory.DisposableBean
public class PassthruFtpAuthenticator extends FTPAuthenticatorBase
Passthru FTP Authenticator Class- Author:
- gkspencer
-
-
Field Summary
Fields Modifier and Type Field Description static intDefaultSessionTmostatic intMaxCheckIntervalstatic intMaxSessionTmostatic intMinCheckIntervalstatic intMinSessionTmostatic longPassthruKeepAliveInterval-
Fields inherited from class org.alfresco.filesys.auth.ftp.FTPAuthenticatorBase
logger, serverConfiguration
-
-
Constructor Summary
Constructors Constructor Description PassthruFtpAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticateUser(org.alfresco.jlan.server.auth.ClientInfo client, org.alfresco.jlan.ftp.FTPSrvSession sess)Authenticate the uservoidcloseAuthenticator()Close the authenticatorprotected voiddoGuestLogon(AlfrescoClientInfo client, org.alfresco.jlan.server.SrvSession sess)Logon using the guest user accountprotected org.alfresco.jlan.server.config.SecurityConfigSectiongetSecurityConfig()voidinitialize()Initialize the authenticator (after properties have been set)voidinitialize(org.alfresco.jlan.server.config.ServerConfiguration config, org.springframework.extensions.config.ConfigElement params)Initialize the authenticatorprotected StringmapClientAddressToDomain(InetAddress clientIP)Map a client IP address to a domainvoidsetPassthruServers(org.alfresco.jlan.server.auth.passthru.PassthruServers passthruServers)-
Methods inherited from class org.alfresco.filesys.auth.ftp.FTPAuthenticatorBase
checkForAdminUserName, createTransaction, destroy, getAuthenticationComponent, getAuthenticationService, getAuthorityService, getNTLMAuthenticator, getTransactionService, isActive, setActive, setAuthenticationComponent, setAuthenticationService, setAuthorityService, setConfig, setTransactionService
-
-
-
-
Field Detail
-
DefaultSessionTmo
public static final int DefaultSessionTmo
- See Also:
- Constant Field Values
-
MinSessionTmo
public static final int MinSessionTmo
- See Also:
- Constant Field Values
-
MaxSessionTmo
public static final int MaxSessionTmo
- See Also:
- Constant Field Values
-
MinCheckInterval
public static final int MinCheckInterval
- See Also:
- Constant Field Values
-
MaxCheckInterval
public static final int MaxCheckInterval
- See Also:
- Constant Field Values
-
PassthruKeepAliveInterval
public static final long PassthruKeepAliveInterval
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSecurityConfig
protected org.alfresco.jlan.server.config.SecurityConfigSection getSecurityConfig()
-
setPassthruServers
public void setPassthruServers(org.alfresco.jlan.server.auth.passthru.PassthruServers passthruServers)
-
initialize
public void initialize(org.alfresco.jlan.server.config.ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws org.alfresco.jlan.server.config.InvalidConfigurationExceptionInitialize the authenticator- Specified by:
initializein interfaceorg.alfresco.jlan.ftp.FTPAuthenticator- Overrides:
initializein classFTPAuthenticatorBase- Parameters:
config- ServerConfigurationparams- ConfigElement- Throws:
org.alfresco.jlan.server.config.InvalidConfigurationException
-
initialize
public void initialize() throws org.alfresco.jlan.server.config.InvalidConfigurationExceptionInitialize the authenticator (after properties have been set)- Overrides:
initializein classFTPAuthenticatorBase- Throws:
org.alfresco.jlan.server.config.InvalidConfigurationException
-
authenticateUser
public boolean authenticateUser(org.alfresco.jlan.server.auth.ClientInfo client, org.alfresco.jlan.ftp.FTPSrvSession sess)Authenticate the user- Specified by:
authenticateUserin interfaceorg.alfresco.jlan.ftp.FTPAuthenticator- Specified by:
authenticateUserin classFTPAuthenticatorBase- Parameters:
client- ClientInfosess- FTPSrvSession- Returns:
- boolean
-
doGuestLogon
protected void doGuestLogon(AlfrescoClientInfo client, org.alfresco.jlan.server.SrvSession sess)
Logon using the guest user account- Parameters:
client- AlfrescoClientInfosess- SrvSession
-
mapClientAddressToDomain
protected final String mapClientAddressToDomain(InetAddress clientIP)
Map a client IP address to a domain- Parameters:
clientIP- InetAddress- Returns:
- String
-
closeAuthenticator
public void closeAuthenticator()
Close the authenticator- Specified by:
closeAuthenticatorin interfaceorg.alfresco.jlan.ftp.FTPAuthenticator- Overrides:
closeAuthenticatorin classFTPAuthenticatorBase
-
-