Class Settings.SslSettings
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.server.Settings.SslSettings
-
-
Field Summary
Fields Modifier and Type Field Description boolean
enabled
Enables SSL.String
keyStore
The file location of the private key in JKS or PKCS#12 format.String
keyStorePassword
The password of thekeyStore
, ornull
if it's not password-protected.String
keyStoreType
io.netty.handler.ssl.ClientAuth
needClientAuth
Require client certificate authenticationList<String>
sslCipherSuites
A list of cipher suites to enable.List<String>
sslEnabledProtocols
A list of SSL protocols to enable.String
trustStore
Trusted certificates for verifying the remote client's certificate.String
trustStorePassword
The password of thetrustStore
, ornull
if it's not password-protected.String
trustStoreType
-
Constructor Summary
Constructors Constructor Description SslSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<io.netty.handler.ssl.SslContext>
getSslContext()
void
overrideSslContext(io.netty.handler.ssl.SslContext sslContext)
When this value is set, the other settings for SSL are ignored.
-
-
-
Field Detail
-
enabled
public boolean enabled
Enables SSL. Other SSL settings will be ignored unless this is set to true.
-
keyStore
public String keyStore
The file location of the private key in JKS or PKCS#12 format.
-
keyStorePassword
public String keyStorePassword
The password of thekeyStore
, ornull
if it's not password-protected.
-
trustStore
public String trustStore
Trusted certificates for verifying the remote client's certificate. If this value is not provided and SSL is enabled, the defaultTrustManager
will be used.
-
trustStorePassword
public String trustStorePassword
The password of thetrustStore
, ornull
if it's not password-protected.
-
keyStoreType
public String keyStoreType
-
trustStoreType
public String trustStoreType
-
sslEnabledProtocols
public List<String> sslEnabledProtocols
A list of SSL protocols to enable. @see JSSE Protocols
-
sslCipherSuites
public List<String> sslCipherSuites
A list of cipher suites to enable. @see Cipher Suites
-
needClientAuth
public io.netty.handler.ssl.ClientAuth needClientAuth
Require client certificate authentication
-
-
Method Detail
-
overrideSslContext
public void overrideSslContext(io.netty.handler.ssl.SslContext sslContext)
When this value is set, the other settings for SSL are ignored. This option provides for a programmatic way to configure more complex SSL configurations. Theenabled
setting should still be set totrue
for this setting to take effect.
-
getSslContext
public Optional<io.netty.handler.ssl.SslContext> getSslContext()
-
-