Package com.linkedin.venice.security
Class DefaultSSLFactory
- java.lang.Object
-
- com.linkedin.venice.security.DefaultSSLFactory
-
- All Implemented Interfaces:
SSLFactory
public class DefaultSSLFactory extends java.lang.Object implements SSLFactory
Cloned fromcom.linkedin.security.ssl.access.control.SSLEngineComponentFactoryImpl
; Changes: 1. Added a new constructor that acceptsProperties
; in the venice backend product, we should wrap around the LinkedIn internal SSL factory, add a new constructor that acceptsProperties
and plug in the wrapper into Venice; 2. Added a helper function that builds aConfig
fromProperties
-
-
Constructor Summary
Constructors Constructor Description DefaultSSLFactory(SSLConfig config)
DefaultSSLFactory(java.util.Properties sslProperties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]
filterDisallowedCiphersuites(java.lang.String[] ciphersuites)
SSLConfig
getSSLConfig()
javax.net.ssl.SSLContext
getSSLContext()
javax.net.ssl.SSLParameters
getSSLParameters()
boolean
isSslEnabled()
boolean
isSslRequireClientCerts()
void
setSslRequireClientCerts(boolean sslRequireClientCerts)
-
-
-
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
-
getSSLConfig
public SSLConfig getSSLConfig()
- Specified by:
getSSLConfig
in interfaceSSLFactory
- Returns:
- the configs used to create this
SSLFactory
-
getSSLContext
public javax.net.ssl.SSLContext getSSLContext()
- Specified by:
getSSLContext
in interfaceSSLFactory
- Returns:
- an instance of
SSLContext
-
getSSLParameters
public javax.net.ssl.SSLParameters getSSLParameters()
- Specified by:
getSSLParameters
in interfaceSSLFactory
- Returns:
- an instance of
SSLParameters
-
isSslEnabled
public boolean isSslEnabled()
- Specified by:
isSslEnabled
in interfaceSSLFactory
- Returns:
- whether SSL is enabled
-
isSslRequireClientCerts
public boolean isSslRequireClientCerts()
-
setSslRequireClientCerts
public void setSslRequireClientCerts(boolean sslRequireClientCerts)
-
-