Class IntegratedSSLSocketFactory
- java.lang.Object
-
- com.avaya.clientservices.network.security.IntegratedSSLSocketFactory
-
- All Implemented Interfaces:
org.apache.http.conn.scheme.LayeredSocketFactory,org.apache.http.conn.scheme.SocketFactory
public class IntegratedSSLSocketFactory extends java.lang.Object implements org.apache.http.conn.scheme.LayeredSocketFactorySSLSocketFactory override with sockets that have a custom TrustManager and HostnameVerifier.
-
-
Constructor Summary
Constructors Constructor Description IntegratedSSLSocketFactory(CertificateManager certificateManager)IntegratedSSLSocketFactory(CertificateManager certificateManager, IdentityHandler identityHandler)IntegratedSSLSocketFactory(CertificateManager certificateManager, IdentityHandler identityHandler, boolean overridePrivateTrustStore, java.util.List<java.lang.String> enabledCipherSuites)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.SocketconnectSocket(java.net.Socket socket, java.lang.String host, int port, java.net.InetAddress localAddress, int localPort, org.apache.http.params.HttpParams httpParams)java.net.SocketcreateSocket()java.net.SocketcreateSocket(java.net.Socket socket, java.lang.String host, int port, boolean autoClose)booleanisSecure(java.net.Socket socket)voidsetMinTLSProtocolVersion(TLSProtocolVersion minTLS)
-
-
-
Constructor Detail
-
IntegratedSSLSocketFactory
public IntegratedSSLSocketFactory(CertificateManager certificateManager, IdentityHandler identityHandler, boolean overridePrivateTrustStore, java.util.List<java.lang.String> enabledCipherSuites) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionjava.security.KeyStoreExceptionjava.security.UnrecoverableKeyException
-
IntegratedSSLSocketFactory
public IntegratedSSLSocketFactory(CertificateManager certificateManager, IdentityHandler identityHandler) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionjava.security.KeyStoreExceptionjava.security.UnrecoverableKeyException
-
IntegratedSSLSocketFactory
public IntegratedSSLSocketFactory(CertificateManager certificateManager) throws java.security.UnrecoverableKeyException, java.security.NoSuchAlgorithmException, java.security.KeyStoreException, java.security.KeyManagementException
- Throws:
java.security.UnrecoverableKeyExceptionjava.security.NoSuchAlgorithmExceptionjava.security.KeyStoreExceptionjava.security.KeyManagementException
-
-
Method Detail
-
createSocket
public java.net.Socket createSocket(java.net.Socket socket, java.lang.String host, int port, boolean autoClose) throws java.io.IOException- Specified by:
createSocketin interfaceorg.apache.http.conn.scheme.LayeredSocketFactory- Throws:
java.io.IOException
-
createSocket
public java.net.Socket createSocket() throws java.io.IOException- Specified by:
createSocketin interfaceorg.apache.http.conn.scheme.SocketFactory- Throws:
java.io.IOException
-
connectSocket
public java.net.Socket connectSocket(java.net.Socket socket, java.lang.String host, int port, java.net.InetAddress localAddress, int localPort, org.apache.http.params.HttpParams httpParams) throws java.io.IOException- Specified by:
connectSocketin interfaceorg.apache.http.conn.scheme.SocketFactory- Throws:
java.io.IOException
-
isSecure
public boolean isSecure(java.net.Socket socket) throws java.lang.IllegalArgumentException- Specified by:
isSecurein interfaceorg.apache.http.conn.scheme.SocketFactory- Throws:
java.lang.IllegalArgumentException
-
setMinTLSProtocolVersion
public void setMinTLSProtocolVersion(TLSProtocolVersion minTLS)
-
-