|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SSLSessionManager
The SSLSessionManager
interface is responsible for dealing
with SSL related events such as certificates being sent from the FTP
server and randomization information.
Field Summary | |
---|---|
static short |
ALLOW_CERTIFICATE
Used to signal certificate acceptance. |
static short |
DENY_CERTIFICATE
Used to signal certificate rejection. |
static short |
SAVE_CERTIFICATE
Used to signal certificate acceptance and that it should be saved in the certificate key store. |
Method Summary | |
---|---|
boolean |
continueWithCertificateHostMismatch(SSLCertificate cert,
String actualHost,
String certHost)
If the server sends a certificate which doesn't match the hostname, this method will be called. |
boolean |
continueWithExpiredCertificate(SSLCertificate cert)
If the server sends an expired certificate, this method will be called. |
boolean |
continueWithInvalidCertificate(SSLCertificate cert)
If the server sends an invalid certificate, this method will be called. |
boolean |
continueWithoutServerCertificate()
If the server doesn't send a certificate, this method will be called. |
short |
newCertificateEncountered(SSLCertificate cert)
If the certificate sent by the FTP server is not found in the key store, this method will be called. |
void |
randomSeedGenerated()
When the random number generator is finished seeding, this method will be called. |
void |
randomSeedIsGenerating()
If the random number generator is seeding and is not ready for setting up SSL sockets, this method will be called. |
short |
replaceCertificate(SSLCertificate oldCert,
SSLCertificate newCert)
If a certificate is found in the key store and a new one that matches the same name is sent from the FTP server, this method will be called. |
void |
setCurrentCertificate(SSLCertificate cert)
When a certificate is encountered from the FTP server, this method will be called. |
Field Detail |
---|
static final short ALLOW_CERTIFICATE
static final short SAVE_CERTIFICATE
static final short DENY_CERTIFICATE
Method Detail |
---|
void setCurrentCertificate(SSLCertificate cert)
cert
- the SSL (X509) certificate.short newCertificateEncountered(SSLCertificate cert)
cert
- the SSL (X509) certificate.
ALLOW_CERTIFICATE
,
SAVE_CERTIFICATE
,
DENY_CERTIFICATE
short replaceCertificate(SSLCertificate oldCert, SSLCertificate newCert)
oldCert
- the known SSL (X509) certificate.newCert
- the new SSL (X509) certificate.
ALLOW_CERTIFICATE
,
SAVE_CERTIFICATE
,
DENY_CERTIFICATE
boolean continueWithoutServerCertificate()
boolean continueWithExpiredCertificate(SSLCertificate cert)
cert
- the certificate sent from the FTP server.
boolean continueWithInvalidCertificate(SSLCertificate cert)
cert
- the certificate sent from the FTP server.
boolean continueWithCertificateHostMismatch(SSLCertificate cert, String actualHost, String certHost)
cert
- the certificate sent from the FTP server.actualHost
- the hostname of the server.certHost
- the hostname as specified in the certificate.
void randomSeedIsGenerating()
void randomSeedGenerated()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |