public class MQTTAuthenticatorItem extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| MQTTAuthenticatorItem() | 
| MQTTAuthenticatorItem(MQTTAuthenticatorItem 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 | getConfig()Get JWT认证器字段说明
from(认证字段)
    password:从password字段获取认证字段
    username:从username字段获取认证字段
secret(签名方式)
    hmac-based:hmac-based签名方式
    public-key:public-key签名方式
secret(密钥),hmac-based需要配置密钥
public-key(公钥),public-key签名方式需要配置
样例:{"from":"password","secret":"secret282698","algorithm":"hmac-based"}
JWKS认证器字段说明
endpoint(接入点):公钥获取服务器接入地址
refreshInterval(认证内容):公钥集合刷新周期
from(认证字段)
    password:从password字段获取认证字段
    username:从username字段获取认证字段
text:公钥集合
样例:{"endpoint":"127.0.0.1","refreshInterval":60,"from":"password"}
HTTP认证器
headers(请求头):标准请求头和自定义请求头
endpoint(接入点):认证服务器接入点
method(http请求方法):POST/GET
readTimeout(读超时时间):读取认证服务器数据超时时间,单位秒
connectTimeout(连接超时时间):连接认证服务器超时时间,单位秒
body(请求体):http请求体
concurrency(并发数):最大并发请求数量
样例:{"headers":[{"key":"Content-type","value":"application/json"},{"key":"username","value":"${Username}"}],"endpoint":"https://127.0.0.1:443","method":"POST","readTimeout":10,"connectTimeout":10,"body":[{"key":"client-id","value":"${ClientId}"}],"concurrency":8}
参考 [认证管理概述](https://cloud.tencent.com/document/product/1778/114813) | 
| Long | getCreateTime()Get 创建时间,毫秒级时间戳 。 | 
| String | getRemark()Get 说明,最长 128 字符。 | 
| String | getStatus()Get 认证器状态
open:认证器打开
close:认证器关闭 | 
| String | getType()Get 认证器类型
JWT:JWT认证器
JWKS:JWKS认证器
HTTP:HTTP认证器 | 
| void | setConfig(String Config)Set JWT认证器字段说明
from(认证字段)
    password:从password字段获取认证字段
    username:从username字段获取认证字段
secret(签名方式)
    hmac-based:hmac-based签名方式
    public-key:public-key签名方式
secret(密钥),hmac-based需要配置密钥
public-key(公钥),public-key签名方式需要配置
样例:{"from":"password","secret":"secret282698","algorithm":"hmac-based"}
JWKS认证器字段说明
endpoint(接入点):公钥获取服务器接入地址
refreshInterval(认证内容):公钥集合刷新周期
from(认证字段)
    password:从password字段获取认证字段
    username:从username字段获取认证字段
text:公钥集合
样例:{"endpoint":"127.0.0.1","refreshInterval":60,"from":"password"}
HTTP认证器
headers(请求头):标准请求头和自定义请求头
endpoint(接入点):认证服务器接入点
method(http请求方法):POST/GET
readTimeout(读超时时间):读取认证服务器数据超时时间,单位秒
connectTimeout(连接超时时间):连接认证服务器超时时间,单位秒
body(请求体):http请求体
concurrency(并发数):最大并发请求数量
样例:{"headers":[{"key":"Content-type","value":"application/json"},{"key":"username","value":"${Username}"}],"endpoint":"https://127.0.0.1:443","method":"POST","readTimeout":10,"connectTimeout":10,"body":[{"key":"client-id","value":"${ClientId}"}],"concurrency":8}
参考 [认证管理概述](https://cloud.tencent.com/document/product/1778/114813) | 
| void | setCreateTime(Long CreateTime)Set 创建时间,毫秒级时间戳 。 | 
| void | setRemark(String Remark)Set 说明,最长 128 字符。 | 
| void | setStatus(String Status)Set 认证器状态
open:认证器打开
close:认证器关闭 | 
| void | setType(String Type)Set 认证器类型
JWT:JWT认证器
JWKS:JWKS认证器
HTTP:HTTP认证器 | 
| 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 MQTTAuthenticatorItem()
public MQTTAuthenticatorItem(MQTTAuthenticatorItem source)
public String getType()
public void setType(String Type)
Type - 认证器类型
JWT:JWT认证器
JWKS:JWKS认证器
HTTP:HTTP认证器public String getConfig()
public void setConfig(String Config)
Config - JWT认证器字段说明
from(认证字段)
    password:从password字段获取认证字段
    username:从username字段获取认证字段
secret(签名方式)
    hmac-based:hmac-based签名方式
    public-key:public-key签名方式
secret(密钥),hmac-based需要配置密钥
public-key(公钥),public-key签名方式需要配置
样例:{"from":"password","secret":"secret282698","algorithm":"hmac-based"}
JWKS认证器字段说明
endpoint(接入点):公钥获取服务器接入地址
refreshInterval(认证内容):公钥集合刷新周期
from(认证字段)
    password:从password字段获取认证字段
    username:从username字段获取认证字段
text:公钥集合
样例:{"endpoint":"127.0.0.1","refreshInterval":60,"from":"password"}
HTTP认证器
headers(请求头):标准请求头和自定义请求头
endpoint(接入点):认证服务器接入点
method(http请求方法):POST/GET
readTimeout(读超时时间):读取认证服务器数据超时时间,单位秒
connectTimeout(连接超时时间):连接认证服务器超时时间,单位秒
body(请求体):http请求体
concurrency(并发数):最大并发请求数量
样例:{"headers":[{"key":"Content-type","value":"application/json"},{"key":"username","value":"${Username}"}],"endpoint":"https://127.0.0.1:443","method":"POST","readTimeout":10,"connectTimeout":10,"body":[{"key":"client-id","value":"${ClientId}"}],"concurrency":8}
参考 [认证管理概述](https://cloud.tencent.com/document/product/1778/114813)public String getStatus()
public void setStatus(String Status)
Status - 认证器状态
open:认证器打开
close:认证器关闭public Long getCreateTime()
public void setCreateTime(Long CreateTime)
CreateTime - 创建时间,毫秒级时间戳 。public String getRemark()
public void setRemark(String Remark)
Remark - 说明,最长 128 字符。Copyright © 2025. All rights reserved.