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 classEncryptionOptions.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.InternodeEncryptioninternode_encryptionbooleanlegacy_ssl_storage_port_enabled-
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 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, equals, getAcceptedProtocols, getEnabled, getOptional, getProtocol, hashCode, 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
-
-
Constructor Detail
-
ServerEncryptionOptions
public ServerEncryptionOptions()
-
ServerEncryptionOptions
public ServerEncryptionOptions(ParameterizedClass sslContextFactoryClass, java.lang.String keystore, java.lang.String 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
-
applyConfig
public EncryptionOptions applyConfig()
- Overrides:
applyConfigin classEncryptionOptions
-
shouldEncrypt
public boolean shouldEncrypt(InetAddressAndPort endpoint)
-
isExplicitlyOptional
public boolean isExplicitlyOptional()
EncryptionOptions.isOptionalwill be set totrueimplicitly forinternode_encryptionvalues of "dc" and "all". This method returns the explicit, raw value ofEncryptionOptions.optionalas set by the user (if set at all).
-
withSslContextFactory
public EncryptionOptions.ServerEncryptionOptions withSslContextFactory(ParameterizedClass sslContextFactoryClass)
- Overrides:
withSslContextFactoryin classEncryptionOptions
-
withKeyStore
public EncryptionOptions.ServerEncryptionOptions withKeyStore(java.lang.String keystore)
- Overrides:
withKeyStorein classEncryptionOptions
-
withKeyStorePassword
public EncryptionOptions.ServerEncryptionOptions withKeyStorePassword(java.lang.String keystore_password)
- Overrides:
withKeyStorePasswordin classEncryptionOptions
-
withTrustStore
public EncryptionOptions.ServerEncryptionOptions withTrustStore(java.lang.String truststore)
- Overrides:
withTrustStorein classEncryptionOptions
-
withTrustStorePassword
public EncryptionOptions.ServerEncryptionOptions withTrustStorePassword(java.lang.String truststore_password)
- Overrides:
withTrustStorePasswordin classEncryptionOptions
-
withCipherSuites
public EncryptionOptions.ServerEncryptionOptions withCipherSuites(java.util.List<java.lang.String> cipher_suites)
- Overrides:
withCipherSuitesin classEncryptionOptions
-
withCipherSuites
public EncryptionOptions.ServerEncryptionOptions withCipherSuites(java.lang.String... cipher_suites)
- Overrides:
withCipherSuitesin classEncryptionOptions
-
withProtocol
public EncryptionOptions.ServerEncryptionOptions withProtocol(java.lang.String protocol)
- Overrides:
withProtocolin classEncryptionOptions
-
withAcceptedProtocols
public EncryptionOptions.ServerEncryptionOptions withAcceptedProtocols(java.util.List<java.lang.String> accepted_protocols)
- Overrides:
withAcceptedProtocolsin classEncryptionOptions
-
withAlgorithm
public EncryptionOptions.ServerEncryptionOptions withAlgorithm(java.lang.String algorithm)
- Overrides:
withAlgorithmin classEncryptionOptions
-
withStoreType
public EncryptionOptions.ServerEncryptionOptions withStoreType(java.lang.String store_type)
- Overrides:
withStoreTypein classEncryptionOptions
-
withRequireClientAuth
public EncryptionOptions.ServerEncryptionOptions withRequireClientAuth(boolean require_client_auth)
- Overrides:
withRequireClientAuthin classEncryptionOptions
-
withRequireEndpointVerification
public EncryptionOptions.ServerEncryptionOptions withRequireEndpointVerification(boolean require_endpoint_verification)
- Overrides:
withRequireEndpointVerificationin 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)
-
-