Package org.apache.cassandra.config
Class EncryptionOptions.ServerEncryptionOptions
- java.lang.Object
-
- org.apache.cassandra.config.EncryptionOptions
-
- org.apache.cassandra.config.EncryptionOptions.ServerEncryptionOptions
-
- Enclosing class:
- EncryptionOptions
public static class EncryptionOptions.ServerEncryptionOptions extends EncryptionOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EncryptionOptions.ServerEncryptionOptions.InternodeEncryption
-
Nested classes/interfaces inherited from class org.apache.cassandra.config.EncryptionOptions
EncryptionOptions.ConfigKey, EncryptionOptions.ServerEncryptionOptions, EncryptionOptions.TlsEncryptionPolicy
-
-
Field Summary
Fields Modifier and Type Field Description EncryptionOptions.ServerEncryptionOptions.InternodeEncryption
internode_encryption
boolean
legacy_ssl_storage_port_enabled
java.lang.String
outbound_keystore
java.lang.String
outbound_keystore_password
-
Fields inherited from class org.apache.cassandra.config.EncryptionOptions
accepted_protocols, algorithm, cipher_suites, enabled, isEnabled, isOptional, keystore, keystore_password, optional, protocol, require_client_auth, require_endpoint_verification, ssl_context_factory, sslContextFactoryInstance, store_type, truststore, truststore_password
-
-
Constructor Summary
Constructors Constructor Description ServerEncryptionOptions()
ServerEncryptionOptions(EncryptionOptions.ServerEncryptionOptions options)
ServerEncryptionOptions(ParameterizedClass sslContextFactoryClass, java.lang.String keystore, java.lang.String keystore_password, java.lang.String outbound_keystore, java.lang.String outbound_keystore_password, java.lang.String truststore, java.lang.String truststore_password, java.util.List<java.lang.String> cipher_suites, java.lang.String protocol, java.util.List<java.lang.String> accepted_protocols, java.lang.String algorithm, java.lang.String store_type, boolean require_client_auth, boolean require_endpoint_verification, java.lang.Boolean optional, EncryptionOptions.ServerEncryptionOptions.InternodeEncryption internode_encryption, boolean legacy_ssl_storage_port_enabled)
-
Method Summary
-
Methods inherited from class org.apache.cassandra.config.EncryptionOptions
acceptedProtocolsArray, cipherSuitesArray, getAcceptedProtocols, getEnabled, getOptional, getProtocol, putSslContextFactoryParameter, setAcceptedProtocols, setEnabled, setOptional, setProtocol, tlsEncryptionPolicy, withEnabled, withOptional
-
-
-
-
Field Detail
-
internode_encryption
public final EncryptionOptions.ServerEncryptionOptions.InternodeEncryption internode_encryption
-
legacy_ssl_storage_port_enabled
public final boolean legacy_ssl_storage_port_enabled
-
outbound_keystore
public final java.lang.String outbound_keystore
-
outbound_keystore_password
@Nullable public final java.lang.String outbound_keystore_password
-
-
Constructor Detail
-
ServerEncryptionOptions
public ServerEncryptionOptions()
-
ServerEncryptionOptions
public ServerEncryptionOptions(ParameterizedClass sslContextFactoryClass, java.lang.String keystore, java.lang.String keystore_password, java.lang.String outbound_keystore, java.lang.String outbound_keystore_password, java.lang.String truststore, java.lang.String truststore_password, java.util.List<java.lang.String> cipher_suites, java.lang.String protocol, java.util.List<java.lang.String> accepted_protocols, java.lang.String algorithm, java.lang.String store_type, boolean require_client_auth, boolean require_endpoint_verification, java.lang.Boolean optional, EncryptionOptions.ServerEncryptionOptions.InternodeEncryption internode_encryption, boolean legacy_ssl_storage_port_enabled)
-
ServerEncryptionOptions
public ServerEncryptionOptions(EncryptionOptions.ServerEncryptionOptions options)
-
-
Method Detail
-
fillSslContextParams
protected void fillSslContextParams(java.util.Map<java.lang.String,java.lang.Object> sslContextFactoryParameters)
- Overrides:
fillSslContextParams
in classEncryptionOptions
-
applyConfig
public EncryptionOptions applyConfig()
- Overrides:
applyConfig
in classEncryptionOptions
-
shouldEncrypt
public boolean shouldEncrypt(InetAddressAndPort endpoint)
-
isExplicitlyOptional
public boolean isExplicitlyOptional()
EncryptionOptions.isOptional
will be set totrue
implicitly forinternode_encryption
values of "dc" and "all". This method returns the explicit, raw value ofEncryptionOptions.optional
as set by the user (if set at all).
-
equals
public boolean equals(java.lang.Object o)
The method is being mainly used to cache SslContexts therefore, we only consider fields that would make a difference when the TrustStore or KeyStore files are updated- Overrides:
equals
in classEncryptionOptions
-
hashCode
public int hashCode()
The method is being mainly used to cache SslContexts therefore, we only consider fields that would make a difference when the TrustStore or KeyStore files are updated- Overrides:
hashCode
in classEncryptionOptions
-
withSslContextFactory
public EncryptionOptions.ServerEncryptionOptions withSslContextFactory(ParameterizedClass sslContextFactoryClass)
- Overrides:
withSslContextFactory
in classEncryptionOptions
-
withKeyStore
public EncryptionOptions.ServerEncryptionOptions withKeyStore(java.lang.String keystore)
- Overrides:
withKeyStore
in classEncryptionOptions
-
withKeyStorePassword
public EncryptionOptions.ServerEncryptionOptions withKeyStorePassword(java.lang.String keystore_password)
- Overrides:
withKeyStorePassword
in classEncryptionOptions
-
withTrustStore
public EncryptionOptions.ServerEncryptionOptions withTrustStore(java.lang.String truststore)
- Overrides:
withTrustStore
in classEncryptionOptions
-
withTrustStorePassword
public EncryptionOptions.ServerEncryptionOptions withTrustStorePassword(java.lang.String truststore_password)
- Overrides:
withTrustStorePassword
in classEncryptionOptions
-
withCipherSuites
public EncryptionOptions.ServerEncryptionOptions withCipherSuites(java.util.List<java.lang.String> cipher_suites)
- Overrides:
withCipherSuites
in classEncryptionOptions
-
withCipherSuites
public EncryptionOptions.ServerEncryptionOptions withCipherSuites(java.lang.String... cipher_suites)
- Overrides:
withCipherSuites
in classEncryptionOptions
-
withProtocol
public EncryptionOptions.ServerEncryptionOptions withProtocol(java.lang.String protocol)
- Overrides:
withProtocol
in classEncryptionOptions
-
withAcceptedProtocols
public EncryptionOptions.ServerEncryptionOptions withAcceptedProtocols(java.util.List<java.lang.String> accepted_protocols)
- Overrides:
withAcceptedProtocols
in classEncryptionOptions
-
withAlgorithm
public EncryptionOptions.ServerEncryptionOptions withAlgorithm(java.lang.String algorithm)
- Overrides:
withAlgorithm
in classEncryptionOptions
-
withStoreType
public EncryptionOptions.ServerEncryptionOptions withStoreType(java.lang.String store_type)
- Overrides:
withStoreType
in classEncryptionOptions
-
withRequireClientAuth
public EncryptionOptions.ServerEncryptionOptions withRequireClientAuth(boolean require_client_auth)
- Overrides:
withRequireClientAuth
in classEncryptionOptions
-
withRequireEndpointVerification
public EncryptionOptions.ServerEncryptionOptions withRequireEndpointVerification(boolean require_endpoint_verification)
- Overrides:
withRequireEndpointVerification
in classEncryptionOptions
-
withOptional
public EncryptionOptions.ServerEncryptionOptions withOptional(boolean optional)
-
withInternodeEncryption
public EncryptionOptions.ServerEncryptionOptions withInternodeEncryption(EncryptionOptions.ServerEncryptionOptions.InternodeEncryption internode_encryption)
-
withLegacySslStoragePort
public EncryptionOptions.ServerEncryptionOptions withLegacySslStoragePort(boolean enable_legacy_ssl_storage_port)
-
withOutboundKeystore
public EncryptionOptions.ServerEncryptionOptions withOutboundKeystore(java.lang.String outboundKeystore)
-
withOutboundKeystorePassword
public EncryptionOptions.ServerEncryptionOptions withOutboundKeystorePassword(java.lang.String outboundKeystorePassword)
-
-