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 newDelegatingSSLSocketFactorybased on the given delegate. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidConfigure 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 SSLSocketMethods inherited from class javax.net.ssl.SSLSocketFactory
createSocket, getDefault
-
Field Details
-
delegate
-
-
Constructor Details
-
DelegatingSSLSocketFactory
Creates a newDelegatingSSLSocketFactorybased on the given delegate.- Parameters:
delegate-SSLSocketFactoryto delegate to
-
-
Method Details
-
createSocket
- Overrides:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public SSLSocket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public SSLSocket createSocket(InetAddress host, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public SSLSocket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException - Specified by:
createSocketin classSSLSocketFactory- Throws:
IOException
-
getDefaultCipherSuites
- Specified by:
getDefaultCipherSuitesin classSSLSocketFactory
-
getSupportedCipherSuites
- Specified by:
getSupportedCipherSuitesin classSSLSocketFactory
-
prepare
- Throws:
IOException
-
configure
Configure the newly created socket.- Parameters:
socket- to configure- Throws:
IOException- if the socket cannot be configured
-