org.metastatic.rsync.v2
Class SSLUtil

java.lang.Object
  |
  +--org.metastatic.rsync.v2.SSLUtil

public class SSLUtil
extends Object


Method Summary
static ServerSocket getSSLServerSocket(int port, InetAddress addr, String keystore, Secrets secrets)
           
static ServerSocket getSSLServerSocket(int port, String keystore, Secrets secrets)
           
static ServerSocketChannel getSSLServerSocketChannel(String keystore, Secrets secrets)
           
static Socket getSSLSocket(String remoteHost, int remotePort)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSSLSocket

public static Socket getSSLSocket(String remoteHost,
                                  int remotePort)
                           throws IOException
IOException

getSSLServerSocketChannel

public static ServerSocketChannel getSSLServerSocketChannel(String keystore,
                                                            Secrets secrets)
                                                     throws CertificateException,
                                                            KeyManagementException,
                                                            KeyStoreException,
                                                            IOException,
                                                            NoSuchAlgorithmException,
                                                            UnrecoverableKeyException
CertificateException
KeyManagementException
KeyStoreException
IOException
NoSuchAlgorithmException
UnrecoverableKeyException

getSSLServerSocket

public static ServerSocket getSSLServerSocket(int port,
                                              String keystore,
                                              Secrets secrets)
                                       throws CertificateException,
                                              KeyManagementException,
                                              KeyStoreException,
                                              IOException,
                                              NoSuchAlgorithmException,
                                              UnrecoverableKeyException
CertificateException
KeyManagementException
KeyStoreException
IOException
NoSuchAlgorithmException
UnrecoverableKeyException

getSSLServerSocket

public static ServerSocket getSSLServerSocket(int port,
                                              InetAddress addr,
                                              String keystore,
                                              Secrets secrets)
                                       throws CertificateException,
                                              KeyManagementException,
                                              KeyStoreException,
                                              IOException,
                                              NoSuchAlgorithmException,
                                              UnrecoverableKeyException
CertificateException
KeyManagementException
KeyStoreException
IOException
NoSuchAlgorithmException
UnrecoverableKeyException