Class IPAuthorizationServiceDescriptor
- java.lang.Object
-
- com.jscape.inet.mft.management.descriptors.Configuration
-
- com.jscape.inet.mft.management.descriptors.ServiceDescriptor
-
- com.jscape.inet.mft.management.descriptors.IPAuthorizationServiceDescriptor
-
- All Implemented Interfaces:
com.jscape.util.db.IntVersioned,java.io.Serializable
public class IPAuthorizationServiceDescriptor extends ServiceDescriptor
IP authorization service descriptor. The service described by this descriptor takes responsibility for blocking IP if too many invalid authentication attempts appear.- Author:
- Alex Usun
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_ATTEMPTSstatic longDEFAULT_TIMEOUT
-
Constructor Summary
Constructors Constructor Description IPAuthorizationServiceDescriptor()This constructor is used by serialization sub-system and is not intended to use directly in client code.IPAuthorizationServiceDescriptor(int maxAttempts, long maxTimeout, long restoringTimeout)Creates a new descriptor instance.IPAuthorizationServiceDescriptor(IPAuthorizationServiceDescriptor that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.jscape.inet.mftserver.operation.connection.AttemptLimitattemptLimit()Configurationcopy()intgetMaxAttempts()Returns max authentication attempts value.longgetMaxTimeout()Returns authentication attempts timeout.longgetRestoringTimeout()Returns account restoring timeout.voidsetMaxAttempts(int value)Sets max authentication attempts value.voidsetMaxTimeout(long value)Sets authentication attempts timeout.voidsetRestoringTimeout(long value)Sets account restoring timeout.java.lang.StringtoString()-
Methods inherited from class com.jscape.inet.mft.management.descriptors.Configuration
getVersion, setVersion
-
-
-
-
Field Detail
-
DEFAULT_ATTEMPTS
public static final int DEFAULT_ATTEMPTS
- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT
public static final long DEFAULT_TIMEOUT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IPAuthorizationServiceDescriptor
public IPAuthorizationServiceDescriptor(int maxAttempts, long maxTimeout, long restoringTimeout)Creates a new descriptor instance.- Parameters:
maxAttempts- max authentication attemptsmaxTimeout- authentication timeout in msrestoringTimeout- restoring timeout in ms
-
IPAuthorizationServiceDescriptor
public IPAuthorizationServiceDescriptor()
This constructor is used by serialization sub-system and is not intended to use directly in client code.
-
IPAuthorizationServiceDescriptor
public IPAuthorizationServiceDescriptor(IPAuthorizationServiceDescriptor that)
-
-
Method Detail
-
getMaxAttempts
public int getMaxAttempts()
Returns max authentication attempts value.- Returns:
- max authentication attempts value
-
setMaxAttempts
public void setMaxAttempts(int value)
Sets max authentication attempts value.- Parameters:
value- max authentication attempts value
-
getMaxTimeout
public long getMaxTimeout()
Returns authentication attempts timeout.- Returns:
- authentication attempts timeout in ms
-
setMaxTimeout
public void setMaxTimeout(long value)
Sets authentication attempts timeout.- Parameters:
value- authentication attempts timeout in ms
-
getRestoringTimeout
public long getRestoringTimeout()
Returns account restoring timeout.- Returns:
- account restoring timeout in ms
-
setRestoringTimeout
public void setRestoringTimeout(long value)
Sets account restoring timeout.- Parameters:
value- account restoring timeut in ms
-
copy
public Configuration copy()
- Specified by:
copyin classConfiguration
-
attemptLimit
public com.jscape.inet.mftserver.operation.connection.AttemptLimit attemptLimit()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-