|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.GenericService SK.gnome.dwarf.ParametersService SK.gnome.dwarf.mail.pop.POPParameters
Provides the POP3-related parameters.
An instance of this class may be added to the POPServer
to provide
a set of POP3-related runtime parameters. The parameters are by default available
to the server and all its nested services.
Each parameter is represented by a protected field with its setter and getter methods, which can be used to access the parameter from the outside world.
Note that some of the parameters are read-only while others may be modified in runtime either via the server console, or programatically.
Field Summary | |
protected java.lang.String[] |
authMethods
The actually available authentication methods. |
protected int |
clientTimeout
Client inactivity timeout. |
protected boolean |
enableBrokenAUTH
Whether to support broken implementations of AUTH command. |
protected java.lang.String[] |
extensions
The actually available POP3 extensions. |
protected boolean |
checkACL
Whether to check the Access Control List. |
protected boolean |
insecureLoginDisabled
Whether to allow the transfer of cleartext passwords via insecure connections. |
protected int |
loginDelay
Default login delay. |
protected boolean |
sendServerInfo
Enables or disables exposing of the server name and version to the client. |
protected boolean |
updateACL
Whether to automatically update the Access Control List. |
Fields inherited from class SK.gnome.dwarf.GenericService |
initParameters, parent |
Fields inherited from interface SK.gnome.dwarf.Service |
INITIALIZED, LOG_DEBUG, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_TRACE, LOG_WARN, LOG_XFER, SHUTDOWN, STARTED, STOPPED |
Constructor Summary | |
POPParameters(java.lang.String name)
Creates a new POPParameters. |
Method Summary | |
boolean |
containsAuthMethod(java.lang.String method)
|
boolean |
containsExtension(java.lang.String extension)
|
java.lang.String[] |
getAllAuthMethods()
|
java.lang.String[] |
getAllExtensions()
|
java.lang.String[] |
getAuthMethods()
|
int |
getClientTimeout()
|
boolean |
getEnableBrokenAUTH()
|
java.lang.String[] |
getExtensions()
|
boolean |
getCheckACL()
|
boolean |
getInsecureLoginDisabled()
|
int |
getLoginDelay()
|
boolean |
getSendServerInfo()
|
boolean |
getUpdateACL()
|
void |
setAuthMethods(java.lang.String[] methods)
|
void |
setClientTimeout(int timeout)
|
void |
setEnableBrokenAUTH(boolean enable)
|
void |
setExtensions(java.lang.String[] extensions)
|
void |
setCheckACL(boolean enable)
|
void |
setInsecureLoginDisabled(boolean enable)
|
void |
setLoginDelay(int delay)
|
void |
setSendServerInfo(boolean enable)
|
void |
setUpdateACL(boolean enable)
|
Methods inherited from class SK.gnome.dwarf.ParametersService |
readOnly, report |
Methods inherited from class SK.gnome.dwarf.GenericService |
getAuthenticator, getAuthFacility, getFullName, getInitParameter, getInitParameterNames, getLogFacility, getLogger, getName, getParameters, getPrincipal, getShutdownTimeout, getState, init, log, log, login, logout, setAuthFacility, setInitParameters, setLogFacility, shutdown, start, stop, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int clientTimeout
Specifies the client inactivity timeout in seconds. After this time the server will automatically close the idle connection.
Default value: 600
protected boolean sendServerInfo
Default value: false
protected int loginDelay
Specifies pause in seconds before automatic logout can happen after a failed authentication.
Value: 5
protected java.lang.String[] extensions
This parameter is read-only.
Default value: SASL, STLS, TOP, UIDL, USER
protected java.lang.String[] authMethods
This parameter is read-only.
Default value: LOGIN, PLAIN
protected boolean insecureLoginDisabled
If enabled the server will not allow to authenticate via a method which uses cleartext passwords unless the session is secured by an encryption mechanism. The USER command and the AUTH command with LOGIN or PLAIN method are examples of such prohibited means.
Default value: false
protected boolean enableBrokenAUTH
If enabled the server will support some broken client implementations of the AUTH command. This is enabled by default to make the server more interoperable.
Default value: true
protected boolean checkACL
If enabled the server will use the available ACLStore to check the user's permissions when performing a mail operation.
This parameter is read-only.
Default value: false
protected boolean updateACL
If enabled the server will automatically update the ACL of the given user when
the INBOX folder is created. The read and delete permissions are granted to the owner.
This feature works only if checkACL
is enabled, too.
This parameter is read-only.
Default value: false
Constructor Detail |
public POPParameters(java.lang.String name)
Method Detail |
public java.lang.String[] getAllExtensions()
public java.lang.String[] getAllAuthMethods()
public void setSendServerInfo(boolean enable)
public boolean getSendServerInfo()
public void setClientTimeout(int timeout)
public int getClientTimeout()
public void setLoginDelay(int delay)
public int getLoginDelay()
public void setExtensions(java.lang.String[] extensions)
public java.lang.String[] getExtensions()
public boolean containsExtension(java.lang.String extension)
public void setAuthMethods(java.lang.String[] methods)
public java.lang.String[] getAuthMethods()
public boolean containsAuthMethod(java.lang.String method)
public void setInsecureLoginDisabled(boolean enable)
public boolean getInsecureLoginDisabled()
public boolean getCheckACL()
public void setCheckACL(boolean enable)
public boolean getEnableBrokenAUTH()
public void setEnableBrokenAUTH(boolean enable)
public boolean getUpdateACL()
public void setUpdateACL(boolean enable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |