public class CreateJWTAuthenticatorRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CreateJWTAuthenticatorRequest() | 
| CreateJWTAuthenticatorRequest(CreateJWTAuthenticatorRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAlgorithm()Get 签名方式:hmac-based,public-key | 
| String | getFrom()Get 认证字段
password:对应 MQTT CONNECT Packet 中 password 字段,
username:对应 MQTT CONNECT Packet 中 username 字段
默认username | 
| String | getInstanceId()Get 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。 | 
| String | getPublicKey()Get 公钥,Algorithm为public-key时需要传递该字段。 | 
| String | getRemark()Get 说明,不能超过 128 个字符。 | 
| String | getSecret()Get 密钥,Algorithm为hmac-based需要传递该字段。 | 
| String | getStatus()Get 认证器是否开启:open-启用;close-关闭,默认:open-启用 | 
| void | setAlgorithm(String Algorithm)Set 签名方式:hmac-based,public-key | 
| void | setFrom(String From)Set 认证字段
password:对应 MQTT CONNECT Packet 中 password 字段,
username:对应 MQTT CONNECT Packet 中 username 字段
默认username | 
| void | setInstanceId(String InstanceId)Set 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。 | 
| void | setPublicKey(String PublicKey)Set 公钥,Algorithm为public-key时需要传递该字段。 | 
| void | setRemark(String Remark)Set 说明,不能超过 128 个字符。 | 
| void | setSecret(String Secret)Set 密钥,Algorithm为hmac-based需要传递该字段。 | 
| void | setStatus(String Status)Set 认证器是否开启:open-启用;close-关闭,默认:open-启用 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreateJWTAuthenticatorRequest()
public CreateJWTAuthenticatorRequest(CreateJWTAuthenticatorRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。public String getAlgorithm()
public void setAlgorithm(String Algorithm)
Algorithm - 签名方式:hmac-based,public-keypublic String getFrom()
public void setFrom(String From)
From - 认证字段
password:对应 MQTT CONNECT Packet 中 password 字段,
username:对应 MQTT CONNECT Packet 中 username 字段
默认usernamepublic String getSecret()
public void setSecret(String Secret)
Secret - 密钥,Algorithm为hmac-based需要传递该字段。public String getPublicKey()
public void setPublicKey(String PublicKey)
PublicKey - 公钥,Algorithm为public-key时需要传递该字段。public String getStatus()
public void setStatus(String Status)
Status - 认证器是否开启:open-启用;close-关闭,默认:open-启用public String getRemark()
public void setRemark(String Remark)
Remark - 说明,不能超过 128 个字符。Copyright © 2025. All rights reserved.