org.apache.ftpserver.impl
Class DefaultConnectionConfig

java.lang.Object
  extended by org.apache.ftpserver.impl.DefaultConnectionConfig
All Implemented Interfaces:
ConnectionConfig

public class DefaultConnectionConfig
extends Object
implements ConnectionConfig

Internal class, do not use directly.

Author:
Apache MINA Project *

Constructor Summary
DefaultConnectionConfig(boolean anonymousLoginEnabled, int loginFailureDelay, int maxLogins, int maxAnonymousLogins, int maxLoginFailures, int maxThreads)
          Internal constructor, do not use directly.
 
Method Summary
 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
 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?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConnectionConfig

public DefaultConnectionConfig(boolean anonymousLoginEnabled,
                               int loginFailureDelay,
                               int maxLogins,
                               int maxAnonymousLogins,
                               int maxLoginFailures,
                               int maxThreads)
Internal constructor, do not use directly. Use ConnectionConfigFactory instead

Method Detail

getLoginFailureDelay

public int getLoginFailureDelay()
Description copied from interface: ConnectionConfig
The delay in number of milliseconds between login failures. Important to make brute force attacks harder.

Specified by:
getLoginFailureDelay in interface ConnectionConfig
Returns:
The delay time in milliseconds

getMaxAnonymousLogins

public int getMaxAnonymousLogins()
Description copied from interface: ConnectionConfig
The maximum number of time an anonymous user can fail to login before getting disconnected

Specified by:
getMaxAnonymousLogins in interface ConnectionConfig
Returns:
The maximum number of failer login attempts

getMaxLoginFailures

public int getMaxLoginFailures()
Description copied from interface: ConnectionConfig
The maximum number of time an user can fail to login before getting disconnected

Specified by:
getMaxLoginFailures in interface ConnectionConfig
Returns:
The maximum number of failure login attempts

getMaxLogins

public int getMaxLogins()
Description copied from interface: ConnectionConfig
The maximum number of concurrently logged in users

Specified by:
getMaxLogins in interface ConnectionConfig
Returns:
The maximum number of users

isAnonymousLoginEnabled

public boolean isAnonymousLoginEnabled()
Description copied from interface: ConnectionConfig
Is anonymous logins allowed at the server?

Specified by:
isAnonymousLoginEnabled in interface ConnectionConfig
Returns:
true if anonymous logins are enabled

getMaxThreads

public int getMaxThreads()
Description copied from interface: ConnectionConfig
Returns the maximum number of threads the server is allowed to create for processing client requests.

Specified by:
getMaxThreads in interface ConnectionConfig
Returns:
the maximum number of threads the server is allowed to create for processing client requests.


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