认证
Kind: global class
Param | Type | Description |
---|---|---|
headers | Object |
http请求的header |
requestBody | string |
请求体 |
privateKeyContent | string |
私钥. 用于请求DuerOS参数签名 |
开启验证请求参数签名,阻止非法请求
Kind: instance method of Certificate
Access: public
关闭验证请求参数签名
Kind: instance method of Certificate
Access: public
验证请求者是否合法
Kind: instance method of Certificate
Returns: promise
Access: public
Kind: instance method of Certificate
Returns: string
Access: public