Package com.linkedin.venice.security
Class DefaultSSLFactory
java.lang.Object
com.linkedin.venice.security.DefaultSSLFactory
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionDefaultSSLFactory(SSLConfig config) DefaultSSLFactory(Properties sslProperties) -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]filterDisallowedCiphersuites(String[] ciphersuites) booleanbooleanvoidsetSslRequireClientCerts(boolean sslRequireClientCerts)
-
Constructor Details
-
Method Details
-
filterDisallowedCiphersuites
public static String[] filterDisallowedCiphersuites(String[] ciphersuites) throws SSLProtocolException - Throws:
SSLProtocolException
-
getSSLConfig
- Specified by:
getSSLConfigin interfaceSSLFactory- Returns:
- the configs used to create this
SSLFactory
-
getSSLContext
- Specified by:
getSSLContextin interfaceSSLFactory- Returns:
- an instance of
SSLContext
-
getSSLParameters
- Specified by:
getSSLParametersin interfaceSSLFactory- Returns:
- an instance of
SSLParameters
-
isSslEnabled
public boolean isSslEnabled()- Specified by:
isSslEnabledin interfaceSSLFactory- Returns:
- whether SSL is enabled
-
isSslRequireClientCerts
public boolean isSslRequireClientCerts() -
setSslRequireClientCerts
public void setSslRequireClientCerts(boolean sslRequireClientCerts)
-