Package org.alfresco.filesys.config
Class FTPConfigBean
- java.lang.Object
-
- org.alfresco.filesys.config.FTPConfigBean
-
public class FTPConfigBean extends java.lang.ObjectThe Class FTPConfigBean.- Author:
- dward
-
-
Constructor Summary
Constructors Constructor Description FTPConfigBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAllowAnonymous()Checks if is allow anonymous.java.lang.StringgetAnonymousAccount()Gets the anonymous account.org.alfresco.jlan.ftp.FTPAuthenticatorgetAuthenticator()Gets the authenticator.java.lang.StringgetBindTo()Gets the bind to.java.lang.StringgetCharSet()Gets the char set.intgetDataPortFrom()Return the data port range from portintgetDataPortTo()Return the data port to range portjava.lang.StringgetDebugFlags()Gets the debug flags.java.lang.StringgetExternalAddress()Return the IP Address to use in NAT setupjava.lang.StringgetKeyStorePassphrase()Return the passphrase for the key storejava.lang.StringgetKeyStorePath()Return the key store pathjava.lang.StringgetKeyStoreType()Return the key store typejava.lang.IntegergetPort()Gets the port.java.lang.StringgetRootDirectory()Gets the root directory.booleangetServerEnabled()Checks if is server enabled.java.lang.IntegergetSessionTimeout()Gets the sesion timeoutjava.lang.StringgetTrustStorePassphrase()Return the passphrase for the trust storejava.lang.StringgetTrustStorePath()Return the trust store pathjava.lang.StringgetTrustStoreType()Return the trust store typebooleanhasRequireSecureSession()Determine if only secure sessions will be allowed to logonbooleanhasSslEngineDebug()Check if SSLEngine debug output should be enabledvoidsetAllowAnonymous(boolean allowAnonymous)Sets the allow anonymous.voidsetAnonymousAccount(java.lang.String anonymousAccount)Sets the anonymous account.voidsetAuthenticator(org.alfresco.jlan.ftp.FTPAuthenticator authenticator)Sets the authenticator.voidsetBindTo(java.lang.String bindTo)Sets the bind to.voidsetCharSet(java.lang.String charSet)Sets the char set.voidsetDataPortFrom(int fromPort)Set the data port range from portvoidsetDataPortTo(int toPort)Set the data port range to portvoidsetDebugFlags(java.lang.String debugFlags)Sets the debug flags.voidsetExternalAddress(java.lang.String externalAddress)Set the IP Address to use in NAT setupvoidsetKeyStorePassphrase(java.lang.String phrase)Set the key store passphrasevoidsetKeyStorePath(java.lang.String path)Set the key store pathvoidsetKeyStoreType(java.lang.String typ)Set the key store typevoidsetPort(java.lang.Integer port)Sets the port.voidsetRequireSecureSession(boolean reqSec)Set/clear the require secure sessions flagvoidsetRootDirectory(java.lang.String rootDirectory)Sets the root directory.voidsetServerEnabled(boolean serverEnabled)Sets the server enabled.voidsetSessionTimeout(java.lang.Integer sessionTimeout)Sets the timeout for socket session.voidsetSslEngineDebug(boolean sslDebug)Enable SSLEngine class debug outputvoidsetTrustStorePassphrase(java.lang.String phrase)Set the trust store passphrasevoidsetTrustStorePath(java.lang.String path)Set the trust store pathvoidsetTrustStoreType(java.lang.String typ)Set the trust store type
-
-
-
Method Detail
-
getServerEnabled
public boolean getServerEnabled()
Checks if is server enabled.- Returns:
- true, if is server enabled
-
setServerEnabled
public void setServerEnabled(boolean serverEnabled)
Sets the server enabled.- Parameters:
serverEnabled- the new server enabled
-
getBindTo
public java.lang.String getBindTo()
Gets the bind to.- Returns:
- the bind to
-
setBindTo
public void setBindTo(java.lang.String bindTo)
Sets the bind to.- Parameters:
bindTo- the new bind to
-
getPort
public java.lang.Integer getPort()
Gets the port.- Returns:
- the port
-
setPort
public void setPort(java.lang.Integer port)
Sets the port.- Parameters:
port- the new port
-
setSessionTimeout
public void setSessionTimeout(java.lang.Integer sessionTimeout)
Sets the timeout for socket session.- Parameters:
sessionTimeout- the new timeout
-
getSessionTimeout
public java.lang.Integer getSessionTimeout()
Gets the sesion timeout- Returns:
- Integer
-
getAllowAnonymous
public boolean getAllowAnonymous()
Checks if is allow anonymous.- Returns:
- true, if is allow anonymous
-
setAllowAnonymous
public void setAllowAnonymous(boolean allowAnonymous)
Sets the allow anonymous.- Parameters:
allowAnonymous- the new allow anonymous
-
getAnonymousAccount
public java.lang.String getAnonymousAccount()
Gets the anonymous account.- Returns:
- the anonymous account
-
setAnonymousAccount
public void setAnonymousAccount(java.lang.String anonymousAccount)
Sets the anonymous account.- Parameters:
anonymousAccount- the new anonymous account
-
getRootDirectory
public java.lang.String getRootDirectory()
Gets the root directory.- Returns:
- the root directory
-
setRootDirectory
public void setRootDirectory(java.lang.String rootDirectory)
Sets the root directory.- Parameters:
rootDirectory- the new root directory
-
getDebugFlags
public java.lang.String getDebugFlags()
Gets the debug flags.- Returns:
- the debug flags
-
setDebugFlags
public void setDebugFlags(java.lang.String debugFlags)
Sets the debug flags.- Parameters:
debugFlags- the new debug flags
-
getCharSet
public java.lang.String getCharSet()
Gets the char set.- Returns:
- the char set
-
setCharSet
public void setCharSet(java.lang.String charSet)
Sets the char set.- Parameters:
charSet- the new char set
-
getAuthenticator
public org.alfresco.jlan.ftp.FTPAuthenticator getAuthenticator()
Gets the authenticator.- Returns:
- the authenticator
-
setAuthenticator
public void setAuthenticator(org.alfresco.jlan.ftp.FTPAuthenticator authenticator)
Sets the authenticator.- Parameters:
authenticator- the new authenticator
-
getDataPortFrom
public int getDataPortFrom()
Return the data port range from port- Returns:
- int
-
setDataPortFrom
public void setDataPortFrom(int fromPort)
Set the data port range from port- Parameters:
fromPort- int
-
getDataPortTo
public int getDataPortTo()
Return the data port to range port- Returns:
- int
-
setDataPortTo
public void setDataPortTo(int toPort)
Set the data port range to port- Parameters:
toPort- int
-
getExternalAddress
public java.lang.String getExternalAddress()
Return the IP Address to use in NAT setup
-
setExternalAddress
public void setExternalAddress(java.lang.String externalAddress)
Set the IP Address to use in NAT setup
-
getKeyStorePath
public final java.lang.String getKeyStorePath()
Return the key store path- Returns:
- String
-
getKeyStoreType
public final java.lang.String getKeyStoreType()
Return the key store type- Returns:
- String
-
getTrustStorePath
public final java.lang.String getTrustStorePath()
Return the trust store path- Returns:
- String
-
getTrustStoreType
public final java.lang.String getTrustStoreType()
Return the trust store type- Returns:
- String
-
getKeyStorePassphrase
public final java.lang.String getKeyStorePassphrase()
Return the passphrase for the key store- Returns:
- String
-
getTrustStorePassphrase
public final java.lang.String getTrustStorePassphrase()
Return the passphrase for the trust store- Returns:
- String
-
hasRequireSecureSession
public final boolean hasRequireSecureSession()
Determine if only secure sessions will be allowed to logon- Returns:
- boolean
-
setRequireSecureSession
public final void setRequireSecureSession(boolean reqSec)
Set/clear the require secure sessions flag- Parameters:
reqSec- boolean
-
setKeyStorePath
public final void setKeyStorePath(java.lang.String path)
Set the key store path- Parameters:
path- String
-
setKeyStoreType
public final void setKeyStoreType(java.lang.String typ)
Set the key store type- Parameters:
typ- String
-
setTrustStorePath
public final void setTrustStorePath(java.lang.String path)
Set the trust store path- Parameters:
path- String
-
setTrustStoreType
public final void setTrustStoreType(java.lang.String typ)
Set the trust store type- Parameters:
typ- String
-
setKeyStorePassphrase
public final void setKeyStorePassphrase(java.lang.String phrase)
Set the key store passphrase- Parameters:
phrase- String
-
setTrustStorePassphrase
public final void setTrustStorePassphrase(java.lang.String phrase)
Set the trust store passphrase- Parameters:
phrase- String
-
hasSslEngineDebug
public final boolean hasSslEngineDebug()
Check if SSLEngine debug output should be enabled- Returns:
- boolean
-
setSslEngineDebug
public final void setSslEngineDebug(boolean sslDebug)
Enable SSLEngine class debug output- Parameters:
sslDebug- boolean
-
-