public static final class AddCustomAuthIdentityRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AddCustomAuthIdentityRequest |
build() |
AddCustomAuthIdentityRequest.Builder |
clientId(String clientId)
The client ID if you set IdentityType to CLIENT.
|
AddCustomAuthIdentityRequest.Builder |
identityType(String identityType)
The identity type.
|
AddCustomAuthIdentityRequest.Builder |
instanceId(String instanceId)
The ID of the Message Queue for MQTT instance.
|
AddCustomAuthIdentityRequest.Builder |
secret(String secret)
The AccessKey secret.
|
AddCustomAuthIdentityRequest.Builder |
signMode(String signMode)
The signature verification mode.
|
AddCustomAuthIdentityRequest.Builder |
username(String username)
The username.
|
public AddCustomAuthIdentityRequest.Builder clientId(String clientId)
The client ID if you set IdentityType to CLIENT.
example:GID_test@@@test
public AddCustomAuthIdentityRequest.Builder identityType(String identityType)
The identity type. Valid values:
This parameter is required.
example:USER
public AddCustomAuthIdentityRequest.Builder instanceId(String instanceId)
The ID of the Message Queue for MQTT instance.
This parameter is required.
example:mqtt-cn-xxxx
public AddCustomAuthIdentityRequest.Builder secret(String secret)
The AccessKey secret.
This parameter is required.
example:xxxxx
public AddCustomAuthIdentityRequest.Builder signMode(String signMode)
The signature verification mode. ORIGIN: compares the password and the AccessKey secret. SIGNED: uses the HMAC_SHA1 algorithm to sign the client ID to obtain a password and then compares the password.
This parameter is required.
example:SIGNED
public AddCustomAuthIdentityRequest.Builder username(String username)
The username.
This parameter is required.
example:test
public AddCustomAuthIdentityRequest build()
Copyright © 2025. All rights reserved.