Reference documentation and code samples for the Google Cloud Managed Kafka V1 Client class TlsConfig.
The TLS configuration for the Kafka cluster.
Generated from protobuf message google.cloud.managedkafka.v1.TlsConfig
Namespace
Google \ Cloud \ ManagedKafka \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ trust_config
TrustConfig
Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
↳ ssl_principal_mapping_rules
string
Optional. A list of rules for mapping from SSL principal names to short names. These are applied in order by Kafka. Refer to the Apache Kafka documentation for ssl.principal.mapping.rules
for the precise formatting details and syntax. Example: "RULE:^CN=(. ?),OU=ServiceUsers.
$/$1@example.com/,DEFAULT" This is a static Kafka broker configuration. Setting or modifying this field will trigger a rolling restart of the Kafka brokers to apply the change. An empty string means no rules are applied (Kafka default).
getTrustConfig
Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
hasTrustConfig
clearTrustConfig
setTrustConfig
Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
$this
getSslPrincipalMappingRules
Optional. A list of rules for mapping from SSL principal names to short names. These are applied in order by Kafka.
Refer to the Apache Kafka documentation for ssl.principal.mapping.rules
for the precise formatting details and syntax.
Example: "RULE:^CN=(. ?),OU=ServiceUsers.
$/$1@example.com/,DEFAULT"
This is a static Kafka broker configuration. Setting or modifying this
field will trigger a rolling restart of the Kafka brokers to apply
the change. An empty string means no rules are applied (Kafka default).
string
setSslPrincipalMappingRules
Optional. A list of rules for mapping from SSL principal names to short names. These are applied in order by Kafka.
Refer to the Apache Kafka documentation for ssl.principal.mapping.rules
for the precise formatting details and syntax.
Example: "RULE:^CN=(. ?),OU=ServiceUsers.
$/$1@example.com/,DEFAULT"
This is a static Kafka broker configuration. Setting or modifying this
field will trigger a rolling restart of the Kafka brokers to apply
the change. An empty string means no rules are applied (Kafka default).
var
string
$this