Class 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
    • Constructor Detail

      • PassthruFtpAuthenticator

        public PassthruFtpAuthenticator()
    • 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.InvalidConfigurationException
        Initialize the authenticator
        Specified by:
        initialize in interface org.alfresco.jlan.ftp.FTPAuthenticator
        Overrides:
        initialize in class FTPAuthenticatorBase
        Parameters:
        config - ServerConfiguration
        params - ConfigElement
        Throws:
        org.alfresco.jlan.server.config.InvalidConfigurationException
      • initialize

        public void initialize()
                        throws org.alfresco.jlan.server.config.InvalidConfigurationException
        Initialize the authenticator (after properties have been set)
        Overrides:
        initialize in class FTPAuthenticatorBase
        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:
        authenticateUser in interface org.alfresco.jlan.ftp.FTPAuthenticator
        Specified by:
        authenticateUser in class FTPAuthenticatorBase
        Parameters:
        client - ClientInfo
        sess - FTPSrvSession
        Returns:
        boolean
      • doGuestLogon

        protected void doGuestLogon​(AlfrescoClientInfo client,
                                    org.alfresco.jlan.server.SrvSession sess)
        Logon using the guest user account
        Parameters:
        client - AlfrescoClientInfo
        sess - SrvSession
      • mapClientAddressToDomain

        protected final java.lang.String mapClientAddressToDomain​(java.net.InetAddress clientIP)
        Map a client IP address to a domain
        Parameters:
        clientIP - InetAddress
        Returns:
        String
      • closeAuthenticator

        public void closeAuthenticator()
        Close the authenticator
        Specified by:
        closeAuthenticator in interface org.alfresco.jlan.ftp.FTPAuthenticator
        Overrides:
        closeAuthenticator in class FTPAuthenticatorBase