Setting Cluster Security
The BrokerAdminClient.setClusterSecurity method allows you to set the level of security and the type of authentication that is to be used in the cluster. All Brokers in the cluster must be properly configured for the new settings and the changes may take some time to be propagated throughout the cluster.
When using this method, you must provide the following parameters:
The type of authentication to be used, specified as one of the
BrokerAdminClient.AUTH_TYPE_* values.
Important:
Use this method with care because changing the security setting might cause the cluster to become partially disconnected. For example, setting SSL authentication or encryption when one or more Brokers are not configured for SSL will cause the cluster to become partially disconnected.