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
ConstructorDescriptionDefaultSSLFactory
(SSLConfig config) DefaultSSLFactory
(Properties sslProperties) -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
filterDisallowedCiphersuites
(String[] ciphersuites) boolean
boolean
void
setSslRequireClientCerts
(boolean sslRequireClientCerts)
-
Constructor Details
-
Method Details
-
filterDisallowedCiphersuites
public static String[] filterDisallowedCiphersuites(String[] ciphersuites) throws SSLProtocolException - Throws:
SSLProtocolException
-
getSSLConfig
- Specified by:
getSSLConfig
in interfaceSSLFactory
- Returns:
- the configs used to create this
SSLFactory
-
getSSLContext
- Specified by:
getSSLContext
in interfaceSSLFactory
- Returns:
- an instance of
SSLContext
-
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)
-