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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumNested classes/interfaces inherited from class org.apache.cassandra.config.EncryptionOptions
EncryptionOptions.ConfigKey, EncryptionOptions.ServerEncryptionOptions, EncryptionOptions.TlsEncryptionPolicy -
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionServerEncryptionOptions(ParameterizedClass sslContextFactoryClass, String keystore, String keystore_password, String outbound_keystore, String outbound_keystore_password, String truststore, String truststore_password, List<String> cipher_suites, String protocol, List<String> accepted_protocols, String algorithm, String store_type, boolean require_client_auth, boolean require_endpoint_verification, Boolean optional, EncryptionOptions.ServerEncryptionOptions.InternodeEncryption internode_encryption, boolean legacy_ssl_storage_port_enabled) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe 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 updatedprotected voidfillSslContextParams(Map<String, Object> sslContextFactoryParameters) inthashCode()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 updatedbooleanEncryptionOptions.isOptionalwill be set totrueimplicitly forinternode_encryptionvalues of "dc" and "all".booleanshouldEncrypt(InetAddressAndPort endpoint) withAcceptedProtocols(List<String> accepted_protocols) withAlgorithm(String algorithm) withCipherSuites(String... cipher_suites) withCipherSuites(List<String> cipher_suites) withInternodeEncryption(EncryptionOptions.ServerEncryptionOptions.InternodeEncryption internode_encryption) withKeyStore(String keystore) withKeyStorePassword(String keystore_password) withLegacySslStoragePort(boolean enable_legacy_ssl_storage_port) withOptional(boolean optional) withOutboundKeystore(String outboundKeystore) withOutboundKeystorePassword(String outboundKeystorePassword) withProtocol(String protocol) withRequireClientAuth(boolean require_client_auth) withRequireEndpointVerification(boolean require_endpoint_verification) withSslContextFactory(ParameterizedClass sslContextFactoryClass) withStoreType(String store_type) withTrustStore(String truststore) withTrustStorePassword(String truststore_password) Methods inherited from class org.apache.cassandra.config.EncryptionOptions
acceptedProtocolsArray, cipherSuitesArray, getAcceptedProtocols, getEnabled, getOptional, getProtocol, putSslContextFactoryParameter, setAcceptedProtocols, setEnabled, setOptional, setProtocol, tlsEncryptionPolicy, withEnabled, withOptional
-
Field Details
-
internode_encryption
-
legacy_ssl_storage_port_enabled
public final boolean legacy_ssl_storage_port_enabled -
outbound_keystore
-
outbound_keystore_password
-
-
Constructor Details
-
ServerEncryptionOptions
public ServerEncryptionOptions() -
ServerEncryptionOptions
public ServerEncryptionOptions(ParameterizedClass sslContextFactoryClass, String keystore, String keystore_password, String outbound_keystore, String outbound_keystore_password, String truststore, String truststore_password, List<String> cipher_suites, String protocol, List<String> accepted_protocols, String algorithm, String store_type, boolean require_client_auth, boolean require_endpoint_verification, Boolean optional, EncryptionOptions.ServerEncryptionOptions.InternodeEncryption internode_encryption, boolean legacy_ssl_storage_port_enabled) -
ServerEncryptionOptions
-
-
Method Details
-
fillSslContextParams
- Overrides:
fillSslContextParamsin classEncryptionOptions
-
applyConfig
- Overrides:
applyConfigin classEncryptionOptions
-
shouldEncrypt
-
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). -
equals
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:
equalsin 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:
hashCodein classEncryptionOptions
-
withSslContextFactory
public EncryptionOptions.ServerEncryptionOptions withSslContextFactory(ParameterizedClass sslContextFactoryClass) - Overrides:
withSslContextFactoryin classEncryptionOptions
-
withKeyStore
- Overrides:
withKeyStorein classEncryptionOptions
-
withKeyStorePassword
- Overrides:
withKeyStorePasswordin classEncryptionOptions
-
withTrustStore
- Overrides:
withTrustStorein classEncryptionOptions
-
withTrustStorePassword
- Overrides:
withTrustStorePasswordin classEncryptionOptions
-
withCipherSuites
- Overrides:
withCipherSuitesin classEncryptionOptions
-
withCipherSuites
- Overrides:
withCipherSuitesin classEncryptionOptions
-
withProtocol
- Overrides:
withProtocolin classEncryptionOptions
-
withAcceptedProtocols
public EncryptionOptions.ServerEncryptionOptions withAcceptedProtocols(List<String> accepted_protocols) - Overrides:
withAcceptedProtocolsin classEncryptionOptions
-
withAlgorithm
- Overrides:
withAlgorithmin classEncryptionOptions
-
withStoreType
- Overrides:
withStoreTypein classEncryptionOptions
-
withRequireClientAuth
- Overrides:
withRequireClientAuthin classEncryptionOptions
-
withRequireEndpointVerification
public EncryptionOptions.ServerEncryptionOptions withRequireEndpointVerification(boolean require_endpoint_verification) - Overrides:
withRequireEndpointVerificationin classEncryptionOptions
-
withOptional
-
withInternodeEncryption
public EncryptionOptions.ServerEncryptionOptions withInternodeEncryption(EncryptionOptions.ServerEncryptionOptions.InternodeEncryption internode_encryption) -
withLegacySslStoragePort
public EncryptionOptions.ServerEncryptionOptions withLegacySslStoragePort(boolean enable_legacy_ssl_storage_port) -
withOutboundKeystore
-
withOutboundKeystorePassword
public EncryptionOptions.ServerEncryptionOptions withOutboundKeystorePassword(String outboundKeystorePassword)
-