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.ServerEncryptionOptions, EncryptionOptions.TlsEncryptionPolicy
-
-
Field Summary
Fields Modifier and Type Field Description boolean
enable_legacy_ssl_storage_port
EncryptionOptions.ServerEncryptionOptions.InternodeEncryption
internode_encryption
-
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, store_type, truststore, truststore_password
-
-
Constructor Summary
Constructors Constructor Description ServerEncryptionOptions()
ServerEncryptionOptions(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 enable_legacy_ssl_storage_port)
ServerEncryptionOptions(EncryptionOptions.ServerEncryptionOptions options)
-
Method Summary
-
Methods inherited from class org.apache.cassandra.config.EncryptionOptions
acceptedProtocols, acceptedProtocolsArray, cipherSuitesArray, equals, hashCode, isEnabled, isOptional, setaccepted_protocols, setEnabled, setOptional, setProtocol, tlsEncryptionPolicy, withEnabled, withOptional
-
-
-
-
Field Detail
-
internode_encryption
public final EncryptionOptions.ServerEncryptionOptions.InternodeEncryption internode_encryption
-
enable_legacy_ssl_storage_port
public final boolean enable_legacy_ssl_storage_port
-
-
Constructor Detail
-
ServerEncryptionOptions
public ServerEncryptionOptions()
-
ServerEncryptionOptions
public ServerEncryptionOptions(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 enable_legacy_ssl_storage_port)
-
ServerEncryptionOptions
public ServerEncryptionOptions(EncryptionOptions.ServerEncryptionOptions options)
-
-
Method Detail
-
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).
-
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)
-
-