public class TrustedSocketFactory extends SSLSocketFactory
Note: The class must be public so it can be instantiated by the
InitialLdapContext
.
Constructor and Description |
---|
TrustedSocketFactory(TrustManager trustManager,
KeyManager keyManager)
Constructor of the TrustedSocketFactory.
|
Modifier and Type | Method and Description |
---|---|
Socket |
createSocket(InetAddress address,
int port) |
Socket |
createSocket(InetAddress address,
int port,
InetAddress clientAddress,
int clientPort) |
Socket |
createSocket(Socket s,
String host,
int port,
boolean autoClose) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress clientHost,
int clientPort) |
static SocketFactory |
getDefault()
Returns the default SSL socket factory.
|
String[] |
getDefaultCipherSuites() |
String[] |
getSupportedCipherSuites() |
createSocket
public TrustedSocketFactory(TrustManager trustManager, KeyManager keyManager)
Note: The class must be public so it can be instantiated by the
InitialLdapContext
.
trustManager
- the trust manager to use.keyManager
- the key manager to use.public static SocketFactory getDefault()
public Socket createSocket(InetAddress address, int port) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(String host, int port) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(String host, int port, InetAddress clientHost, int clientPort) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(Socket s, 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
Copyright 2010-2017 ForgeRock AS.