Class RpcSSLSocketFactory
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
com.perforce.p4java.impl.mapbased.rpc.stream.RpcSSLSocketFactory
A factory for creating SSL socket objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class allow any X509 certificates to be used to authenticate the remote side of a secure socket, including self-signed certificates. -
Method Summary
Modifier and TypeMethodDescriptioncreateSocket(String host, int port) createSocket(String host, int port, InetAddress localHost, int localPort) createSocket(InetAddress host, int port) createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) createSocket(Socket socket, String host, int port, boolean autoClose) String[]static RpcSSLSocketFactorygetInstance(Properties properties) Gets the single instance of RpcSSLSocketFactory.String[]Methods inherited from class javax.net.ssl.SSLSocketFactory
createSocket, getDefault
-
Method Details
-
getInstance
Gets the single instance of RpcSSLSocketFactory.- Parameters:
properties- properties- Returns:
- single instance of RpcSSLSocketFactory
-
createSocket
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException - Specified by:
createSocketin classSSLSocketFactory- Throws:
IOExceptionUnknownHostException- See Also:
-
createSocket
- Overrides:
createSocketin classSocketFactory- Throws:
IOException- See Also:
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException- See Also:
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOException- See Also:
-
createSocket
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException - Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException- See Also:
-
createSocket
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocketin classSocketFactory- Throws:
IOException- See Also:
-
getDefaultCipherSuites
- Specified by:
getDefaultCipherSuitesin classSSLSocketFactory- See Also:
-
getSupportedCipherSuites
- Specified by:
getSupportedCipherSuitesin classSSLSocketFactory- See Also:
-