public class DelegatingSSLSocketFactory
extends javax.net.ssl.SSLSocketFactory
| Constructor and Description |
|---|
DelegatingSSLSocketFactory(DelegatingTrustManager trustManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAppCertificateChain()
Removes all certificates from the TrustManager that were used prior to checking against any
KeyStores.
|
java.net.Socket |
createSocket() |
java.net.Socket |
createSocket(java.net.InetAddress host,
int port) |
java.net.Socket |
createSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddress,
int localPort) |
java.net.Socket |
createSocket(java.net.Socket socket,
java.lang.String host,
int port,
boolean autoClose) |
java.net.Socket |
createSocket(java.lang.String host,
int port) |
java.net.Socket |
createSocket(java.lang.String host,
int port,
java.net.InetAddress localHost,
int localPort) |
java.lang.String[] |
getDefaultCipherSuites() |
java.lang.String[] |
getSupportedCipherSuites() |
void |
setAppCertificateChain(java.security.cert.X509Certificate[] chain)
Updates the certificate chain used by the TrustManager before checking against any KeyStores.
|
public DelegatingSSLSocketFactory(DelegatingTrustManager trustManager) throws java.security.KeyManagementException, java.security.NoSuchAlgorithmException
java.security.KeyManagementExceptionjava.security.NoSuchAlgorithmExceptionpublic java.lang.String[] getDefaultCipherSuites()
getDefaultCipherSuites in class javax.net.ssl.SSLSocketFactorypublic java.lang.String[] getSupportedCipherSuites()
getSupportedCipherSuites in class javax.net.ssl.SSLSocketFactorypublic java.net.Socket createSocket(java.lang.String host,
int port)
throws java.io.IOException,
java.net.UnknownHostException
createSocket in class javax.net.SocketFactoryjava.io.IOExceptionjava.net.UnknownHostExceptionpublic java.net.Socket createSocket(java.net.Socket socket,
java.lang.String host,
int port,
boolean autoClose)
throws java.io.IOException
createSocket in class javax.net.ssl.SSLSocketFactoryjava.io.IOExceptionpublic java.net.Socket createSocket(java.lang.String host,
int port,
java.net.InetAddress localHost,
int localPort)
throws java.io.IOException,
java.net.UnknownHostException
createSocket in class javax.net.SocketFactoryjava.io.IOExceptionjava.net.UnknownHostExceptionpublic java.net.Socket createSocket(java.net.InetAddress host,
int port)
throws java.io.IOException
createSocket in class javax.net.SocketFactoryjava.io.IOExceptionpublic java.net.Socket createSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddress,
int localPort)
throws java.io.IOException
createSocket in class javax.net.SocketFactoryjava.io.IOExceptionpublic java.net.Socket createSocket()
throws java.io.IOException
createSocket in class javax.net.SocketFactoryjava.io.IOExceptionpublic void setAppCertificateChain(java.security.cert.X509Certificate[] chain)
throws java.security.KeyStoreException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException,
java.io.IOException
chain - java.security.KeyStoreExceptionjava.security.NoSuchAlgorithmExceptionjava.security.cert.CertificateExceptionjava.io.IOExceptionpublic void clearAppCertificateChain()