Package com.linkedin.venice.hadoop.utils
Class VPJSSLUtils
java.lang.Object
com.linkedin.venice.hadoop.utils.VPJSSLUtils
This class contains some utils methods for VPJ jobs to obtain SSL-related configs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<SSLFactory>createSSLFactory(boolean enableSsl, String sslFactoryClassName, Lazy<Properties> sslProps) static PropertiesgetSslProperties(VeniceProperties allProperties) Build a ssl properties based on the hadoop token file.static voidTest-only hook to reset the per-JVM SSL properties cache between test cases.static VenicePropertiessetupSSLForExecutor(VeniceProperties config) Sets up SSL on the executor side before creating a PubSub consumer, by materializing SSL properties from the Hadoop token file.static void
-
Constructor Details
-
VPJSSLUtils
public VPJSSLUtils()
-
-
Method Details
-
getSslProperties
Build a ssl properties based on the hadoop token file.- Throws:
IOException
-
setupSSLForExecutor
Sets up SSL on the executor side before creating a PubSub consumer, by materializing SSL properties from the Hadoop token file. This is a no-op when no SSL configurator class is configured. The materialized SSL properties are cached per-JVM (seecachedExecutorSslProps) so repeated calls on the same executor don't re-read the token file or re-write temp certificate files. -
resetExecutorSslPropsCacheForTests
public static void resetExecutorSslPropsCacheForTests()Test-only hook to reset the per-JVM SSL properties cache between test cases. -
validateSslProperties
-
createSSLFactory
public static Optional<SSLFactory> createSSLFactory(boolean enableSsl, String sslFactoryClassName, Lazy<Properties> sslProps)
-