Package 

Class SafeSSLSocketFactory


  • 
    public class SafeSSLSocketFactory
    extends SSLSocketFactory
                        

    This is a decorator for the SSLSocketFactory which modifies the enabled TLS protocols for each created SSLSocket to only use the protocols which are considered to be safe.

    This class was created because the {@code SSLContext.getInstance()} method does not allow specifying precisely which TLS protocols can be used and which cannot.