org.alfresco.filesys.auth.ftp
Class PassthruFtpAuthenticator

java.lang.Object
  extended by org.alfresco.filesys.auth.ftp.FTPAuthenticatorBase
      extended by 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


Field Summary
static int DefaultSessionTmo
           
static int MaxCheckInterval
           
static int MaxSessionTmo
           
static int MinCheckInterval
           
static int MinSessionTmo
           
static long PassthruKeepAliveInterval
           
 
Fields inherited from class org.alfresco.filesys.auth.ftp.FTPAuthenticatorBase
logger, serverConfiguration
 
Constructor Summary
PassthruFtpAuthenticator()
           
 
Method Summary
 boolean authenticateUser(org.alfresco.jlan.server.auth.ClientInfo client, org.alfresco.jlan.ftp.FTPSrvSession sess)
          Authenticate the user
 void closeAuthenticator()
          Close the authenticator
protected  void doGuestLogon(AlfrescoClientInfo client, org.alfresco.jlan.server.SrvSession sess)
          Logon using the guest user account
protected  org.alfresco.jlan.server.config.SecurityConfigSection getSecurityConfig()
           
 void initialize()
          Initialize the authenticator (after properties have been set)
 void initialize(org.alfresco.jlan.server.config.ServerConfiguration config, org.springframework.extensions.config.ConfigElement params)
          Initialize the authenticator
protected  java.lang.String mapClientAddressToDomain(java.net.InetAddress clientIP)
          Map a client IP address to a domain
 void setPassthruServers(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
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


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