com.perforce.p4java.impl.mapbased.rpc.stream
Class RpcSSLSocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by javax.net.ssl.SSLSocketFactory
          extended by com.perforce.p4java.impl.mapbased.rpc.stream.RpcSSLSocketFactory

public class RpcSSLSocketFactory
extends SSLSocketFactory

A factory for creating SSL socket objects.


Nested Class Summary
static class RpcSSLSocketFactory.TrustAllTrustManager
          This class allow any X509 certificates to be used to authenticate the remote side of a secure socket, including self-signed certificates.
 
Method Summary
 Socket createSocket()
           
 Socket createSocket(InetAddress host, int port)
           
 Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)
           
 Socket createSocket(Socket socket, String host, int port, boolean autoClose)
           
 Socket createSocket(String host, int port)
           
 Socket createSocket(String host, int port, InetAddress localHost, int localPort)
           
 String[] getDefaultCipherSuites()
           
static RpcSSLSocketFactory getInstance(Properties properties)
          Gets the single instance of RpcSSLSocketFactory.
 String[] getSupportedCipherSuites()
           
 
Methods inherited from class javax.net.ssl.SSLSocketFactory
getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RpcSSLSocketFactory getInstance(Properties properties)
Gets the single instance of RpcSSLSocketFactory.

Returns:
single instance of RpcSSLSocketFactory

createSocket

public Socket createSocket(Socket socket,
                           String host,
                           int port,
                           boolean autoClose)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in class SSLSocketFactory
Throws:
IOException
UnknownHostException
See Also:
SSLSocketFactory.createSocket(java.net.Socket, java.lang.String, int, boolean)

createSocket

public Socket createSocket()
                    throws IOException
Overrides:
createSocket in class SocketFactory
Throws:
IOException
See Also:
SocketFactory.createSocket()

createSocket

public Socket createSocket(String host,
                           int port)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in class SocketFactory
Throws:
IOException
UnknownHostException
See Also:
SocketFactory.createSocket(java.lang.String, int)

createSocket

public Socket createSocket(InetAddress host,
                           int port)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException
See Also:
SocketFactory.createSocket(java.net.InetAddress, int)

createSocket

public Socket createSocket(String host,
                           int port,
                           InetAddress localHost,
                           int localPort)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in class SocketFactory
Throws:
IOException
UnknownHostException
See Also:
SocketFactory.createSocket(java.lang.String, int, java.net.InetAddress, int)

createSocket

public Socket createSocket(InetAddress address,
                           int port,
                           InetAddress localAddress,
                           int localPort)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException
See Also:
SocketFactory.createSocket(java.net.InetAddress, int, java.net.InetAddress, int)

getDefaultCipherSuites

public String[] getDefaultCipherSuites()
Specified by:
getDefaultCipherSuites in class SSLSocketFactory
See Also:
SSLSocketFactory.getDefaultCipherSuites()

getSupportedCipherSuites

public String[] getSupportedCipherSuites()
Specified by:
getSupportedCipherSuites in class SSLSocketFactory
See Also:
SSLSocketFactory.getSupportedCipherSuites()


Copyright © 2015 Perforce Software. All Rights Reserved.