@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:56.222Z") public enum ClientBrokerEncryption extends java.lang.Enum<ClientBrokerEncryption>
Example:
Vpc vpc; Cluster cluster = Cluster.Builder.create(this, "cluster") .clusterName("myCluster") .kafkaVersion(KafkaVersion.V2_8_1) .vpc(vpc) .encryptionInTransit(EncryptionInTransitConfig.builder() .clientBroker(ClientBrokerEncryption.TLS) .build()) .clientAuthentication(ClientAuthentication.sasl(SaslAuthProps.builder() .scram(true) .build())) .build();
Enum Constant and Description |
---|
PLAINTEXT
(experimental) PLAINTEXT means that client-broker communication is enabled in plaintext only.
|
TLS
(experimental) TLS means that client-broker communication is enabled with TLS only.
|
TLS_PLAINTEXT
(experimental) TLS_PLAINTEXT means that client-broker communication is enabled for both TLS-encrypted, as well as plaintext data.
|
Modifier and Type | Method and Description |
---|---|
static ClientBrokerEncryption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClientBrokerEncryption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientBrokerEncryption TLS
public static final ClientBrokerEncryption TLS_PLAINTEXT
public static final ClientBrokerEncryption PLAINTEXT
public static ClientBrokerEncryption[] values()
for (ClientBrokerEncryption c : ClientBrokerEncryption.values()) System.out.println(c);
public static ClientBrokerEncryption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null