Skip to content

SaslUserProps

Properties for defining a SaslUser.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-kafka-sasluser

Initializer

import com.aliyun.ros.cdk.kafka.SaslUserProps;
SaslUserProps.builder()
    .instanceId(java.lang.String)
    .instanceId(IResolvable)
    .password(java.lang.String)
    .password(IResolvable)
    .username(java.lang.String)
    .username(IResolvable)
//  .mechanism(java.lang.String)
//  .mechanism(IResolvable)
//  .type(java.lang.String)
//  .type(IResolvable)
    .build();

Properties

Name Type Description
instanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceId: The instance ID.
password java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property password: The password of the SASL user.
username java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property username: The name of the SASL user.
mechanism java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property mechanism: The encryption method.
type java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property type: The type of the Simple Authentication and Security Layer (SASL) user.

instanceIdRequired

public java.lang.Object getInstanceId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property instanceId: The instance ID.


passwordRequired

public java.lang.Object getPassword();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property password: The password of the SASL user.


usernameRequired

public java.lang.Object getUsername();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property username: The name of the SASL user.


mechanismOptional

public java.lang.Object getMechanism();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property mechanism: The encryption method.

Valid values: SCRAM-SHA-512 (default) SCRAM-SHA-256 Note This parameter is available only for ApsaraMQ for Kafka V3 serverless instances.


typeOptional

public java.lang.Object getType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property type: The type of the Simple Authentication and Security Layer (SASL) user.

Valid values: plain: a simple mechanism that uses usernames and passwords to verify user identities. ApsaraMQ for Kafka provides an improved PLAIN mechanism that allows you to dynamically add SASL users without the need to restart an instance. SCRAM: a mechanism that uses usernames and passwords to verify user identities. Compared with the PLAIN mechanism, this mechanism provides better security protection. ApsaraMQ for Kafka uses the SCRAM-SHA-256 algorithm. LDAP: This value is available only for the SASL users of ApsaraMQ for Confluent instances. Default value: plain.