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, getDefault
public DelegatingSSLSocketFactory(SSLSocketFactory delegate)
DelegatingSSLSocketFactory
based on the given
delegate.delegate
- SSLSocketFactory
to delegate topublic SSLSocket createSocket() throws IOException
createSocket
in class SocketFactory
IOException
public SSLSocket createSocket(String host, int port) throws IOException
createSocket
in class SocketFactory
IOException
public SSLSocket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException
createSocket
in class SocketFactory
IOException
public SSLSocket createSocket(InetAddress host, int port) throws IOException
createSocket
in class SocketFactory
IOException
public SSLSocket createSocket(InetAddress host, int port, InetAddress localAddress, int localPort) throws IOException
createSocket
in class SocketFactory
IOException
public SSLSocket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException
createSocket
in class SSLSocketFactory
IOException
public String[] getDefaultCipherSuites()
getDefaultCipherSuites
in class SSLSocketFactory
public String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class SSLSocketFactory
protected abstract void configure(SSLSocket socket) throws IOException
socket
- to configureIOException
- if the socket cannot be configuredCopyright © 2021 Eclipse JGit Project. All rights reserved.