com.netflix.http4.ssl
Class AcceptAllSocketFactory

java.lang.Object
  extended by org.apache.http.conn.ssl.SSLSocketFactory
      extended by com.netflix.http4.ssl.AcceptAllSocketFactory
All Implemented Interfaces:
com.netflix.client.IClientConfigAware, org.apache.http.conn.scheme.LayeredSchemeSocketFactory, org.apache.http.conn.scheme.LayeredSocketFactory, org.apache.http.conn.scheme.SchemeLayeredSocketFactory, org.apache.http.conn.scheme.SchemeSocketFactory, org.apache.http.conn.scheme.SocketFactory

public class AcceptAllSocketFactory
extends org.apache.http.conn.ssl.SSLSocketFactory
implements com.netflix.client.IClientConfigAware

SSL Socket factory that will accept all remote endpoints. This should be used only for testing connections/connectivity. Following similar pattern as load-balancers here, which is to take an IClientConfig


Field Summary
 
Fields inherited from class org.apache.http.conn.ssl.SSLSocketFactory
ALLOW_ALL_HOSTNAME_VERIFIER, BROWSER_COMPATIBLE_HOSTNAME_VERIFIER, SSL, SSLV2, STRICT_HOSTNAME_VERIFIER, TLS
 
Constructor Summary
AcceptAllSocketFactory()
           
 
Method Summary
 void initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig)
          In the case of this factory the intent is to ensure that a truststore is not set, as this does not make sense in the context of an accept-all policy
 
Methods inherited from class org.apache.http.conn.ssl.SSLSocketFactory
connectSocket, connectSocket, createLayeredSocket, createLayeredSocket, createSocket, createSocket, createSocket, getHostnameVerifier, getSocketFactory, getSystemSocketFactory, isSecure, prepareSocket, setHostnameVerifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptAllSocketFactory

public AcceptAllSocketFactory()
                       throws java.security.KeyManagementException,
                              java.security.UnrecoverableKeyException,
                              java.security.NoSuchAlgorithmException,
                              java.security.KeyStoreException
Throws:
java.security.KeyManagementException
java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
Method Detail

initWithNiwsConfig

public void initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig)
In the case of this factory the intent is to ensure that a truststore is not set, as this does not make sense in the context of an accept-all policy

Specified by:
initWithNiwsConfig in interface com.netflix.client.IClientConfigAware