|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
org.semanticdesktop.aperture.crawler.imap.ImapCrawler.SimpleSocketFactory
public static class ImapCrawler.SimpleSocketFactory
This is a socket factory that ignores ssl certificates.
| Constructor Summary | |
|---|---|
ImapCrawler.SimpleSocketFactory()
Creates a socket factory that will ignore the ssl certificate, and accept any as valid. |
|
ImapCrawler.SimpleSocketFactory(File certificateFile,
String password)
Read trusted certificates from the given keyStore |
|
| Method Summary | |
|---|---|
Socket |
createSocket()
Creates a socket |
Socket |
createSocket(InetAddress host,
int port)
Creates a socket with the given parameters. |
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort)
Creates a socket with the given parameters. |
Socket |
createSocket(Socket socket,
String host,
int port,
boolean flag)
Creates a socket with the given parameters. |
Socket |
createSocket(String host,
int port)
Creates a socket with the given parameters. |
Socket |
createSocket(String host,
int port,
InetAddress localHost,
int localPort)
Creates a socket with the given parameters. |
static SocketFactory |
getDefault()
Returns the default socket factory |
String[] |
getDefaultCipherSuites()
Returns an array of default cipher suites. |
String[] |
getSupportedCipherSuites()
Returns an array of supported cipher suites. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImapCrawler.SimpleSocketFactory()
public ImapCrawler.SimpleSocketFactory(File certificateFile,
String password)
certificateFile - password - | Method Detail |
|---|
public static SocketFactory getDefault()
public Socket createSocket()
throws IOException
createSocket in class SocketFactoryIOException - if na I/O error occurs
public Socket createSocket(Socket socket,
String host,
int port,
boolean flag)
throws IOException
createSocket in class SSLSocketFactorysocket - the parent sockethost - the host addressport - the port numberflag - the flag
IOException - if something goes wrong in the process
public Socket createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort)
throws IOException
createSocket in class SocketFactoryaddress - the internet addresslocalAddress - the local addressport - the remote port numberlocalPort - the local port number
IOException - if something goes wrong in the process
public Socket createSocket(InetAddress host,
int port)
throws IOException
createSocket in class SocketFactoryhost - the internet addressport - the remote port number
IOException - if something goes wrong in the process
public Socket createSocket(String host,
int port,
InetAddress localHost,
int localPort)
throws IOException
createSocket in class SocketFactoryhost - the internet addressport - the remote port numberlocalHost - the local addresslocalPort - the local port number
IOException - if something goes wrong in the process
public Socket createSocket(String host,
int port)
throws IOException
createSocket in class SocketFactoryhost - the internet addressport - the remote port number
IOException - if something goes wrong in the processpublic String[] getDefaultCipherSuites()
getDefaultCipherSuites in class SSLSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLSocketFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||