Class DelegatingSSLSocketFactory
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
org.eclipse.jgit.internal.transport.http.DelegatingSSLSocketFactory
An
SSLSocketFactory
that delegates to another factory and allows
configuring the created socket via configure(SSLSocket)
before it is
returned.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDelegatingSSLSocketFactory
(SSLSocketFactory delegate) Creates a newDelegatingSSLSocketFactory
based on the given delegate. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
Configure the newly created socket.createSocket
(String host, int port) createSocket
(String host, int port, InetAddress localAddress, int localPort) createSocket
(InetAddress host, int port) createSocket
(InetAddress host, int port, InetAddress localAddress, int localPort) createSocket
(Socket socket, String host, int port, boolean autoClose) String[]
String[]
private SSLSocket
Methods inherited from class javax.net.ssl.SSLSocketFactory
createSocket, getDefault
-
Field Details
-
delegate
-
-
Constructor Details
-
DelegatingSSLSocketFactory
Creates a newDelegatingSSLSocketFactory
based on the given delegate.- Parameters:
delegate
-SSLSocketFactory
to delegate to
-
-
Method Details
-
createSocket
- Overrides:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public SSLSocket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public SSLSocket createSocket(InetAddress host, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public SSLSocket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException - Specified by:
createSocket
in classSSLSocketFactory
- Throws:
IOException
-
getDefaultCipherSuites
- Specified by:
getDefaultCipherSuites
in classSSLSocketFactory
-
getSupportedCipherSuites
- Specified by:
getSupportedCipherSuites
in classSSLSocketFactory
-
prepare
- Throws:
IOException
-
configure
Configure the newly created socket.- Parameters:
socket
- to configure- Throws:
IOException
- if the socket cannot be configured
-