|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.enterprisedt.net.ftp.AdvancedSSLSettings
public class AdvancedSSLSettings
Settings specifically for the FTPS (FTP over SSL) protocol. Generally these settings are not required for basic use of the protocol.
All settings must be set before connecting to the server.
| Method Summary | |
|---|---|
java.lang.String |
getClientCertificatePassphrase()
Get the passphrase that has been set for the client certificate, or null if it has not been set. |
java.lang.String |
getClientCertificatePath()
Set the path of the PEM file containing the client certificate and private key. |
SSLFTPCipherSuite[] |
getEnabledCipherSuites()
Get a list of the enabled cipher suites. |
SSLFTPSecurityMechanism |
getSecurityMechanism()
Set the security mechanism that should be used to set up the secure connection. |
java.lang.String[] |
getSSLServerCommonNames()
Gets the names that will be used to match the CommonName (CN) field while the certificate is being validated. |
SSLFTPCertificateStore |
getSSLServerValidationCertificates()
Returns a reference to the SSLFTPCertificateStore
which contains the root certificates that will be used
to validate the server certificate. |
boolean |
isAllowBasicConstraintsNonCA()
Are non-CA certificates (e.g. |
boolean |
isDisableSessionResumption()
Is session resumption disabled? The default is false (i.e. |
boolean |
isDisableSSLClosure()
Is standard SSL closure disabled? If disabled, SSL connections are forced to close. |
boolean |
isDisableWaitOnClose()
Is the disable waiting on close flag set? If set, stops the client waiting for an SSL closure acknowledgement on both the control channel and the data channel. |
boolean |
isStartWithClearDataChannels()
Are clear data channels used initially? By default the client switches to private data channels immediately after AUTH. |
boolean |
isUseUnencryptedCommands()
Should FTPS command-channel be revert to plain text after establishing an encrypted connection (FTPS only). |
void |
setAllowBasicConstraintsNonCA(boolean allowBasicConstraintsNonCA)
Are non-CA certificates (e.g. |
void |
setClientCertificatePassphrase(java.lang.String clientCertificatePassphrase)
Set the passphrase for the client certificate. |
void |
setClientCertificatePath(java.lang.String clientCertificatePath)
Set the path of the PEM file containing the client certificate and private key. |
void |
setDisableSessionResumption(boolean disableSessionResumption)
Set session resumption on or off. |
void |
setDisableSSLClosure(boolean disableSSLClosure)
Disables standard SSL closure by forcing on both data and control channels SSL connections to close in a non-standard manner. |
void |
setDisableWaitOnClose(boolean disableWaitOnClose)
If set, stops the client waiting for an SSL closure acknowledgement on both the control channel and the data channel. |
void |
setEnabledCipherSuites(SSLFTPCipherSuite[] enabledCipherSuites)
Set the list of enabled ciper suites. |
void |
setSecurityMechanism(SSLFTPSecurityMechanism auth)
Get the security mechanism that should be used to set up the secure connection. |
void |
setSSLServerCommonNames(java.lang.String[] serverCommonNames)
Set the names that will be used to match the CommonName (CN) field while the certificate is being validated. |
void |
setStartWithClearDataChannels(boolean startWithClearDataChannels)
By default the client switches to private data channels immediately after the auth(String) method
is called. |
void |
setUseUnencryptedCommands(boolean useUnencryptedCommands)
Changed whether command-channel reverts to plain text after connecting (FTPS only). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public SSLFTPCertificateStore getSSLServerValidationCertificates()
SSLFTPCertificateStore
which contains the root certificates that will be used
to validate the server certificate.
public java.lang.String getClientCertificatePath()
public void setClientCertificatePath(java.lang.String clientCertificatePath)
The file must be formatted as follows:
-----BEGIN xxx PRIVATE KEY----- ... client's private key ... -----END xxx PRIVATE KEY----- -----BEGIN CERTIFICATE----- ... client's certificate ... -----END CERTIFICATE-----where
xxx defines the keytype which must be either
RSA or DSA.
A chain of keys (ordered from client's certificate to the root) may be placed in the file. Each certificate must be bracketed as shown above.
clientCertificatePath - path of the client certificate filepublic java.lang.String getClientCertificatePassphrase()
public void setClientCertificatePassphrase(java.lang.String clientCertificatePassphrase)
clientCertificatePassphrase - passphrase to setpublic boolean isAllowBasicConstraintsNonCA()
public void setAllowBasicConstraintsNonCA(boolean allowBasicConstraintsNonCA)
allowBasicConstraintsNonCA - true to allow basic constraints in non-CA certs.public boolean isStartWithClearDataChannels()
public void setStartWithClearDataChannels(boolean startWithClearDataChannels)
auth(String) method
is called. It does this by invoking pbsz(0) and
prot('P') from inside the auth() method.
This flag stops this behaviour if set to true. The default is false.
startWithClearDataChannels - true to force clear data channelspublic boolean isDisableSessionResumption()
public void setDisableSessionResumption(boolean disableSessionResumption)
disableSessionResumption - true to disable.public boolean isDisableWaitOnClose()
public void setDisableWaitOnClose(boolean disableWaitOnClose)
disableWaitOnClose - true to disable wait on closepublic boolean isDisableSSLClosure()
public void setDisableSSLClosure(boolean disableSSLClosure)
disableSSLClosure - true to disable SSL closurepublic SSLFTPSecurityMechanism getSecurityMechanism()
public void setSecurityMechanism(SSLFTPSecurityMechanism auth)
auth - security mechanism to usepublic SSLFTPCipherSuite[] getEnabledCipherSuites()
public void setEnabledCipherSuites(SSLFTPCipherSuite[] enabledCipherSuites)
enabledCipherSuites - cipher suites to enabledpublic boolean isUseUnencryptedCommands()
public void setUseUnencryptedCommands(boolean useUnencryptedCommands)
useUnencryptedCommands - true if commands should be sent in plain text (FTPS only).public java.lang.String[] getSSLServerCommonNames()
public void setSSLServerCommonNames(java.lang.String[] serverCommonNames)
serverCommonNames - names which will be used for matching.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||