Package akka.remote.artery.tcp
Class ConfigSSLEngineProvider
- java.lang.Object
-
- akka.remote.artery.tcp.ConfigSSLEngineProvider
-
- All Implemented Interfaces:
SSLEngineProvider
public class ConfigSSLEngineProvider extends java.lang.Object implements SSLEngineProvider
Config in akka.remote.artery.ssl.config-ssl-engineSubclass may override protected methods to replace certain parts, such as key and trust manager.
-
-
Constructor Summary
Constructors Constructor Description ConfigSSLEngineProvider(ActorSystem system)
ConfigSSLEngineProvider(com.typesafe.config.Config config, MarkerLoggingAdapter log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.typesafe.config.Config
config()
javax.net.ssl.SSLEngine
createClientSSLEngine(java.lang.String hostname, int port)
java.security.SecureRandom
createSecureRandom()
javax.net.ssl.SSLEngine
createServerSSLEngine(java.lang.String hostname, int port)
boolean
HostnameVerification()
protected javax.net.ssl.KeyManager[]
keyManagers()
Subclass may override to customizeKeyManager
protected java.security.KeyStore
loadKeystore(java.lang.String filename, java.lang.String password)
Subclass may override to customize loading ofKeyStore
protected MarkerLoggingAdapter
log()
scala.collection.immutable.Set<java.lang.String>
SSLEnabledAlgorithms()
java.lang.String
SSLKeyPassword()
java.lang.String
SSLKeyStore()
java.lang.String
SSLKeyStorePassword()
java.lang.String
SSLProtocol()
java.lang.String
SSLRandomNumberGenerator()
boolean
SSLRequireMutualAuthentication()
java.lang.String
SSLTrustStore()
java.lang.String
SSLTrustStorePassword()
protected javax.net.ssl.TrustManager[]
trustManagers()
Subclass may override to customizeTrustManager
scala.Option<java.lang.Throwable>
verifyClientSession(java.lang.String hostname, javax.net.ssl.SSLSession session)
Verification that will be called after every successful handshake to verify additional session information.scala.Option<java.lang.Throwable>
verifyServerSession(java.lang.String hostname, javax.net.ssl.SSLSession session)
Verification that will be called after every successful handshake to verify additional session information.
-
-
-
Constructor Detail
-
ConfigSSLEngineProvider
public ConfigSSLEngineProvider(com.typesafe.config.Config config, MarkerLoggingAdapter log)
-
ConfigSSLEngineProvider
public ConfigSSLEngineProvider(ActorSystem system)
-
-
Method Detail
-
HostnameVerification
public boolean HostnameVerification()
-
SSLEnabledAlgorithms
public scala.collection.immutable.Set<java.lang.String> SSLEnabledAlgorithms()
-
SSLKeyPassword
public java.lang.String SSLKeyPassword()
-
SSLKeyStore
public java.lang.String SSLKeyStore()
-
SSLKeyStorePassword
public java.lang.String SSLKeyStorePassword()
-
SSLProtocol
public java.lang.String SSLProtocol()
-
SSLRandomNumberGenerator
public java.lang.String SSLRandomNumberGenerator()
-
SSLRequireMutualAuthentication
public boolean SSLRequireMutualAuthentication()
-
SSLTrustStore
public java.lang.String SSLTrustStore()
-
SSLTrustStorePassword
public java.lang.String SSLTrustStorePassword()
-
config
protected com.typesafe.config.Config config()
-
createClientSSLEngine
public javax.net.ssl.SSLEngine createClientSSLEngine(java.lang.String hostname, int port)
- Specified by:
createClientSSLEngine
in interfaceSSLEngineProvider
-
createSecureRandom
public java.security.SecureRandom createSecureRandom()
-
createServerSSLEngine
public javax.net.ssl.SSLEngine createServerSSLEngine(java.lang.String hostname, int port)
- Specified by:
createServerSSLEngine
in interfaceSSLEngineProvider
-
keyManagers
protected javax.net.ssl.KeyManager[] keyManagers()
Subclass may override to customizeKeyManager
-
loadKeystore
protected java.security.KeyStore loadKeystore(java.lang.String filename, java.lang.String password)
Subclass may override to customize loading ofKeyStore
-
log
protected MarkerLoggingAdapter log()
-
trustManagers
protected javax.net.ssl.TrustManager[] trustManagers()
Subclass may override to customizeTrustManager
-
verifyClientSession
public scala.Option<java.lang.Throwable> verifyClientSession(java.lang.String hostname, javax.net.ssl.SSLSession session)
Description copied from interface:SSLEngineProvider
Verification that will be called after every successful handshake to verify additional session information. ReturnNone
if valid otherwiseSome
with explaining cause.- Specified by:
verifyClientSession
in interfaceSSLEngineProvider
-
verifyServerSession
public scala.Option<java.lang.Throwable> verifyServerSession(java.lang.String hostname, javax.net.ssl.SSLSession session)
Description copied from interface:SSLEngineProvider
Verification that will be called after every successful handshake to verify additional session information. ReturnNone
if valid otherwiseSome
with explaining cause.- Specified by:
verifyServerSession
in interfaceSSLEngineProvider
-
-