@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:43.555Z") @Stability(value=Experimental) public enum ClientBrokerEncryption extends 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(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.
|
@Stability(value=Experimental) public static final ClientBrokerEncryption TLS
@Stability(value=Experimental) public static final ClientBrokerEncryption TLS_PLAINTEXT
@Stability(value=Experimental) public static final ClientBrokerEncryption PLAINTEXT
public static ClientBrokerEncryption[] values()
for (ClientBrokerEncryption c : ClientBrokerEncryption.values()) System.out.println(c);
public static ClientBrokerEncryption valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.