public abstract class DelegatingSSLSocketFactory extends SSLSocketFactory
SSLSocketFactory that delegates to another factory and allows
configuring the created socket via configure(SSLSocket) before it is
returned.| Constructor and Description |
|---|
DelegatingSSLSocketFactory(SSLSocketFactory delegate)
Creates a new
DelegatingSSLSocketFactory based on the given
delegate. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
configure(SSLSocket socket)
Configure the newly created socket.
|
SSLSocket |
createSocket() |
SSLSocket |
createSocket(InetAddress host,
int port) |
SSLSocket |
createSocket(InetAddress host,
int port,
InetAddress localAddress,
int localPort) |
SSLSocket |
createSocket(Socket socket,
String host,
int port,
boolean autoClose) |
SSLSocket |
createSocket(String host,
int port) |
SSLSocket |
createSocket(String host,
int port,
InetAddress localAddress,
int localPort) |
String[] |
getDefaultCipherSuites() |
String[] |
getSupportedCipherSuites() |
createSocket, getDefaultpublic DelegatingSSLSocketFactory(SSLSocketFactory delegate)
DelegatingSSLSocketFactory based on the given
delegate.delegate - SSLSocketFactory to delegate topublic SSLSocket createSocket() throws IOException
createSocket in class SocketFactoryIOExceptionpublic SSLSocket createSocket(String host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic SSLSocket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic SSLSocket createSocket(InetAddress host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic SSLSocket createSocket(InetAddress host, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic SSLSocket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException
createSocket in class SSLSocketFactoryIOExceptionpublic String[] getDefaultCipherSuites()
getDefaultCipherSuites in class SSLSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLSocketFactoryprotected abstract void configure(SSLSocket socket) throws IOException
socket - to configureIOException - if the socket cannot be configuredCopyright © 2021 Eclipse JGit Project. All rights reserved.