|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.ssl.SslConfigurationFactory
public class SslConfigurationFactory
Used to configure the SSL settings for the control channel or the data channel.
Constructor Summary | |
---|---|
SslConfigurationFactory()
|
Method Summary | |
---|---|
SslConfiguration |
createSslConfiguration()
Create an instance of SslConfiguration based on the configuration
of this factory. |
ClientAuth |
getClientAuth()
Return the required client authentication setting |
java.lang.String[] |
getEnabledCipherSuites()
Returns the cipher suites that should be enabled for this connection. |
java.lang.String |
getKeyAlias()
Get the server key alias to be used for SSL communication |
java.lang.String |
getKeyPassword()
The password used to load the key |
java.lang.String |
getKeystoreAlgorithm()
The algorithm used to open the key store. |
java.io.File |
getKeystoreFile()
The key store file used by this configuration |
java.lang.String |
getKeystorePassword()
The password used to load the key store |
java.lang.String |
getKeystoreType()
The key store type, defaults to @see KeyStore.getDefaultType() |
java.lang.String |
getSslProtocol()
The SSL protocol used for this channel. |
java.lang.String |
getTruststoreAlgorithm()
The algorithm used to open the trust store. |
java.io.File |
getTruststoreFile()
Get the file used to load the truststore |
java.lang.String |
getTruststorePassword()
The password used to load the trust store |
java.lang.String |
getTruststoreType()
The trust store type, defaults to @see KeyStore.getDefaultType() |
void |
setClientAuthentication(java.lang.String clientAuthReqd)
Set what client authentication level to use, supported values are "yes" or "true" for required authentication, "want" for wanted authentication and "false" or "none" for no authentication. |
void |
setEnabledCipherSuites(java.lang.String[] enabledCipherSuites)
Set the allowed cipher suites, note that the exact list of supported cipher suites differs between JRE implementations. |
void |
setKeyAlias(java.lang.String keyAlias)
Set the alias for the key to be used for SSL communication. |
void |
setKeyPassword(java.lang.String keyPass)
Set the password used to load the key |
void |
setKeystoreAlgorithm(java.lang.String keystoreAlgorithm)
Override the key store algorithm used to open the key store |
void |
setKeystoreFile(java.io.File keyStoreFile)
Set the key store file to be used by this configuration |
void |
setKeystorePassword(java.lang.String keystorePass)
Set the password used to load the key store |
void |
setKeystoreType(java.lang.String keystoreType)
Set the key store type |
void |
setSslProtocol(java.lang.String sslProtocol)
Set the SSL protocol used for this channel. |
void |
setTruststoreAlgorithm(java.lang.String trustStoreAlgorithm)
Override the trust store algorithm used to open the trust store |
void |
setTruststoreFile(java.io.File trustStoreFile)
Set the password used to load the trust store |
void |
setTruststorePassword(java.lang.String trustStorePass)
Set the password used to load the trust store |
void |
setTruststoreType(java.lang.String trustStoreType)
Set the trust store type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SslConfigurationFactory()
Method Detail |
---|
public java.io.File getKeystoreFile()
public void setKeystoreFile(java.io.File keyStoreFile)
keyStoreFile
- A path to an existing key store filepublic java.lang.String getKeystorePassword()
public void setKeystorePassword(java.lang.String keystorePass)
keystorePass
- The passwordpublic java.lang.String getKeystoreType()
KeyStore.getDefaultType()
public void setKeystoreType(java.lang.String keystoreType)
keystoreType
- The key store typepublic java.lang.String getKeystoreAlgorithm()
public void setKeystoreAlgorithm(java.lang.String keystoreAlgorithm)
keystoreAlgorithm
- The key store algorithmpublic java.lang.String getSslProtocol()
public void setSslProtocol(java.lang.String sslProtocol)
sslProtocol
- The SSL protocolpublic void setClientAuthentication(java.lang.String clientAuthReqd)
clientAuthReqd
- The desired authentication levelpublic java.lang.String getKeyPassword()
public void setKeyPassword(java.lang.String keyPass)
keyPass
- The passwordpublic java.io.File getTruststoreFile()
File
containing the truststorepublic void setTruststoreFile(java.io.File trustStoreFile)
trustStoreFile
- The passwordpublic java.lang.String getTruststorePassword()
public void setTruststorePassword(java.lang.String trustStorePass)
trustStorePass
- The passwordpublic java.lang.String getTruststoreType()
KeyStore.getDefaultType()
public void setTruststoreType(java.lang.String trustStoreType)
trustStoreType
- The trust store typepublic java.lang.String getTruststoreAlgorithm()
public void setTruststoreAlgorithm(java.lang.String trustStoreAlgorithm)
trustStoreAlgorithm
- The trust store algorithmpublic SslConfiguration createSslConfiguration()
SslConfiguration
based on the configuration
of this factory.
SslConfiguration
instancepublic ClientAuth getClientAuth()
ClientAuth.NEED
if client authentication is required,
ClientAuth.WANT
is client authentication is wanted or
ClientAuth.NONE
if no client authentication is the be
performedpublic java.lang.String[] getEnabledCipherSuites()
public void setEnabledCipherSuites(java.lang.String[] enabledCipherSuites)
enabledCipherSuites
- public java.lang.String getKeyAlias()
public void setKeyAlias(java.lang.String keyAlias)
keyAlias
- The alias to use, or null if JSSE should be allowed to choose
the key.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |