org.apache.ftpserver
Class ConnectionConfigFactory

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

public class ConnectionConfigFactory
extends Object

Factory for creating connection configurations

Author:
Apache MINA Project

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 anonymous logins the server would allow at any given time
 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
 int getMaxThreads()
          Returns the maximum number of threads the server is allowed to create for processing client requests.
 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 anonymous logins the server would allow at any given time
 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
 void setMaxThreads(int maxThreads)
          Sets the maximum number of threads the server is allowed to create for processing client requests.
 
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 anonymous logins the server would allow at any given time

Returns:
The maximum number of anonymous logins

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

getMaxThreads

public int getMaxThreads()
Returns the maximum number of threads the server is allowed to create for processing client requests.

Returns:
the maximum number of threads the server is allowed to create for processing client requests.

setMaxThreads

public void setMaxThreads(int maxThreads)
Sets the maximum number of threads the server is allowed to create for processing client requests.

Parameters:
maxThreads - the maximum number of threads the server is allowed to create for processing client requests.

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 anonymous logins the server would allow at any given time

Parameters:
maxAnonymousLogins - The maximum number of anonymous logins

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.