Class RotatingKeysSSLEngineProvider
java.lang.Object
org.apache.pekko.remote.artery.tcp.ssl.RotatingKeysSSLEngineProvider
- All Implemented Interfaces:
SSLEngineProvider
Variation on ConfigSSLEngineProvider that will periodically reload the keys and certificates
from disk, to facilitate rolling updates of certificates.
This class is still ApiMayChange because it can likely be further harmonized with the standard ConfigSSLEngineProvider. Also the location and default values of the configuration may change in future versions of Apache Pekko.
This provider does not perform hostname verification, but instead allows checking that the remote certificate has a subject name that matches the subject name of the configured certificate.
-
Constructor Summary
ConstructorsConstructorDescriptionRotatingKeysSSLEngineProvider(com.typesafe.config.Config config, MarkerLoggingAdapter log) -
Method Summary
Modifier and TypeMethodDescriptioncom.typesafe.config.Configconfig()createClientSSLEngine(String hostname, int port) createServerSSLEngine(String hostname, int port) protected MarkerLoggingAdapterlog()scala.Option<Throwable>verifyClientSession(String hostname, SSLSession session) Verification that will be called after every successful handshake to verify additional session information.scala.Option<Throwable>verifyServerSession(String hostname, SSLSession session) Verification that will be called after every successful handshake to verify additional session information.
-
Constructor Details
-
RotatingKeysSSLEngineProvider
-
RotatingKeysSSLEngineProvider
-
-
Method Details
-
config
public com.typesafe.config.Config config() -
log
-
createServerSSLEngine
- Specified by:
createServerSSLEnginein interfaceSSLEngineProvider
-
createClientSSLEngine
- Specified by:
createClientSSLEnginein interfaceSSLEngineProvider
-
verifyClientSession
Description copied from interface:SSLEngineProviderVerification that will be called after every successful handshake to verify additional session information. ReturnNoneif valid otherwiseSomewith explaining cause.- Specified by:
verifyClientSessionin interfaceSSLEngineProvider
-
verifyServerSession
Description copied from interface:SSLEngineProviderVerification that will be called after every successful handshake to verify additional session information. ReturnNoneif valid otherwiseSomewith explaining cause.- Specified by:
verifyServerSessionin interfaceSSLEngineProvider
-