org.apache.ftpserver
Class ConnectionConfigFactory

java.lang.Object
  extended by org.apache.ftpserver.ConnectionConfigFactory

public class ConnectionConfigFactory
extends java.lang.Object

Factory for creating connection configurations

Version:
$Rev$, $Date$
Author:
The Apache MINA Project (dev@mina.apache.org)

Constructor Summary
ConnectionConfigFactory()
           
 
Method Summary
 ConnectionConfig createConnectionConfig()
          Create a connection configuration instances based on the configuration on this factory
 int getLoginFailureDelay()
          The delay in number of milliseconds between login failures.
 int getMaxAnonymousLogins()
          The maximum number of time an anonymous user can fail to login before getting disconnected
 int getMaxLoginFailures()
          The maximum number of time an user can fail to login before getting disconnected
 int getMaxLogins()
          The maximum number of concurrently logged in users
 boolean isAnonymousLoginEnabled()
          Is anonymous logins allowed at the server?
 void setAnonymousLoginEnabled(boolean anonymousLoginEnabled)
          Set if anonymous logins are allowed at the server
 void setLoginFailureDelay(int loginFailureDelay)
          Set the delay in number of milliseconds between login failures.
 void setMaxAnonymousLogins(int maxAnonymousLogins)
          Sets the maximum number of time an anonymous user can fail to login before getting disconnected
 void setMaxLoginFailures(int maxLoginFailures)
          Set the maximum number of time an user can fail to login before getting disconnected
 void setMaxLogins(int maxLogins)
          Set she maximum number of concurrently logged in users
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionConfigFactory

public ConnectionConfigFactory()
Method Detail

createConnectionConfig

public ConnectionConfig createConnectionConfig()
Create a connection configuration instances based on the configuration on this factory

Returns:
The ConnectionConfig instance

getLoginFailureDelay

public int getLoginFailureDelay()
The delay in number of milliseconds between login failures. Important to make brute force attacks harder.

Returns:
The delay time in milliseconds

getMaxAnonymousLogins

public int getMaxAnonymousLogins()
The maximum number of time an anonymous user can fail to login before getting disconnected

Returns:
The maximum number of failer login attempts

getMaxLoginFailures

public int getMaxLoginFailures()
The maximum number of time an user can fail to login before getting disconnected

Returns:
The maximum number of failure login attempts

getMaxLogins

public int getMaxLogins()
The maximum number of concurrently logged in users

Returns:
The maximum number of users

isAnonymousLoginEnabled

public boolean isAnonymousLoginEnabled()
Is anonymous logins allowed at the server?

Returns:
true if anonymous logins are enabled

setMaxLogins

public void setMaxLogins(int maxLogins)
Set she maximum number of concurrently logged in users

Parameters:
maxLogins - The maximum number of users

setAnonymousLoginEnabled

public void setAnonymousLoginEnabled(boolean anonymousLoginEnabled)
Set if anonymous logins are allowed at the server

Parameters:
anonymousLoginEnabled - true if anonymous logins should be enabled

setMaxAnonymousLogins

public void setMaxAnonymousLogins(int maxAnonymousLogins)
Sets the maximum number of time an anonymous user can fail to login before getting disconnected

Parameters:
maxAnonymousLogins - The maximum number of failer login attempts

setMaxLoginFailures

public void setMaxLoginFailures(int maxLoginFailures)
Set the maximum number of time an user can fail to login before getting disconnected

Parameters:
maxLoginFailures - The maximum number of failure login attempts

setLoginFailureDelay

public void setLoginFailureDelay(int loginFailureDelay)
Set the delay in number of milliseconds between login failures. Important to make brute force attacks harder.

Parameters:
loginFailureDelay - The delay time in milliseconds


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.