public static class EncryptionOptions.ServerEncryptionOptions extends EncryptionOptions
Modifier and Type | Class and Description |
---|---|
static class |
EncryptionOptions.ServerEncryptionOptions.InternodeEncryption |
EncryptionOptions.ServerEncryptionOptions, EncryptionOptions.TlsEncryptionPolicy
Modifier and Type | Field and Description |
---|---|
boolean |
enable_legacy_ssl_storage_port |
EncryptionOptions.ServerEncryptionOptions.InternodeEncryption |
internode_encryption |
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 and Description |
---|
ServerEncryptionOptions() |
ServerEncryptionOptions(EncryptionOptions.ServerEncryptionOptions options) |
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) |
acceptedProtocols, acceptedProtocolsArray, cipherSuitesArray, equals, hashCode, isEnabled, isOptional, setaccepted_protocols, setEnabled, setOptional, setProtocol, tlsEncryptionPolicy, withEnabled, withOptional
public final EncryptionOptions.ServerEncryptionOptions.InternodeEncryption internode_encryption
public final boolean enable_legacy_ssl_storage_port
public 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)
public ServerEncryptionOptions(EncryptionOptions.ServerEncryptionOptions options)
public EncryptionOptions applyConfig()
applyConfig
in class EncryptionOptions
public boolean shouldEncrypt(InetAddressAndPort endpoint)
public boolean isExplicitlyOptional()
EncryptionOptions.isOptional
will be set to true
implicitly for internode_encryption
values of "dc" and "all". This method returns the explicit, raw value of EncryptionOptions.optional
as set by the user (if set at all).public EncryptionOptions.ServerEncryptionOptions withKeyStore(java.lang.String keystore)
withKeyStore
in class EncryptionOptions
public EncryptionOptions.ServerEncryptionOptions withKeyStorePassword(java.lang.String keystore_password)
withKeyStorePassword
in class EncryptionOptions
public EncryptionOptions.ServerEncryptionOptions withTrustStore(java.lang.String truststore)
withTrustStore
in class EncryptionOptions
public EncryptionOptions.ServerEncryptionOptions withTrustStorePassword(java.lang.String truststore_password)
withTrustStorePassword
in class EncryptionOptions
public EncryptionOptions.ServerEncryptionOptions withCipherSuites(java.util.List<java.lang.String> cipher_suites)
withCipherSuites
in class EncryptionOptions
public EncryptionOptions.ServerEncryptionOptions withCipherSuites(java.lang.String... cipher_suites)
withCipherSuites
in class EncryptionOptions
public EncryptionOptions.ServerEncryptionOptions withProtocol(java.lang.String protocol)
withProtocol
in class EncryptionOptions
public EncryptionOptions.ServerEncryptionOptions withAcceptedProtocols(java.util.List<java.lang.String> accepted_protocols)
withAcceptedProtocols
in class EncryptionOptions
public EncryptionOptions.ServerEncryptionOptions withAlgorithm(java.lang.String algorithm)
withAlgorithm
in class EncryptionOptions
public EncryptionOptions.ServerEncryptionOptions withStoreType(java.lang.String store_type)
withStoreType
in class EncryptionOptions
public EncryptionOptions.ServerEncryptionOptions withRequireClientAuth(boolean require_client_auth)
withRequireClientAuth
in class EncryptionOptions
public EncryptionOptions.ServerEncryptionOptions withRequireEndpointVerification(boolean require_endpoint_verification)
withRequireEndpointVerification
in class EncryptionOptions
public EncryptionOptions.ServerEncryptionOptions withOptional(boolean optional)
public EncryptionOptions.ServerEncryptionOptions withInternodeEncryption(EncryptionOptions.ServerEncryptionOptions.InternodeEncryption internode_encryption)
public EncryptionOptions.ServerEncryptionOptions withLegacySslStoragePort(boolean enable_legacy_ssl_storage_port)
Copyright © 2009-2021 The Apache Software Foundation