Class DefaultSSLFactory

  • All Implemented Interfaces:
    SSLFactory

    public class DefaultSSLFactory
    extends java.lang.Object
    implements SSLFactory
    Cloned from com.linkedin.security.ssl.access.control.SSLEngineComponentFactoryImpl; Changes: 1. Added a new constructor that accepts Properties; in the venice backend product, we should wrap around the LinkedIn internal SSL factory, add a new constructor that accepts Properties and plug in the wrapper into Venice; 2. Added a helper function that builds a Config from Properties
    • Constructor Detail

      • DefaultSSLFactory

        public DefaultSSLFactory​(java.util.Properties sslProperties)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • DefaultSSLFactory

        public DefaultSSLFactory​(SSLConfig config)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • filterDisallowedCiphersuites

        public static java.lang.String[] filterDisallowedCiphersuites​(java.lang.String[] ciphersuites)
                                                               throws javax.net.ssl.SSLProtocolException
        Throws:
        javax.net.ssl.SSLProtocolException
      • getSSLContext

        public javax.net.ssl.SSLContext getSSLContext()
        Specified by:
        getSSLContext in interface SSLFactory
        Returns:
        an instance of SSLContext
      • getSSLParameters

        public javax.net.ssl.SSLParameters getSSLParameters()
        Specified by:
        getSSLParameters in interface SSLFactory
        Returns:
        an instance of SSLParameters
      • isSslEnabled

        public boolean isSslEnabled()
        Specified by:
        isSslEnabled in interface SSLFactory
        Returns:
        whether SSL is enabled
      • isSslRequireClientCerts

        public boolean isSslRequireClientCerts()
      • setSslRequireClientCerts

        public void setSslRequireClientCerts​(boolean sslRequireClientCerts)