This accessor is used for publishing secure messages over MQTt protocol, using authorization service provided by a local authorization entity.
This accessor requires the 'iotAuth' and 'mqtt' modules.
- Version:
- $$Id$$
- Source:
Inputs:
Name | Type | Description |
---|---|---|
toPublish |
The message to be published. |
Outputs:
Name | Type | Description |
---|---|---|
connection |
Output an object when a connection with a MQTT broker is established. | |
ready |
Output an object when the secure publisher is ready to publish secure messages with a session key and connection with a MQTT broker. |
Parameters:
Name | Type | Description |
---|---|---|
brokerHost |
string | The MQTT broker's IP address or domain name. |
brokerPort |
int | The MQTT broker's port number. |
topic |
string | The topic to publish. |
qosLevel |
int | QoS level of MQTT for published messages |
publisherName |
string | The publisher's unique name in string. |
authHost |
string | Auth's IP address or domain name. |
authPort |
int | Auth's port number. |
authCertPath |
string | The path for the X.509 certificate file (in pem format) of Auth with which the publisher is registered. |
publisherPrivateKeyPath |
string | The path for the pem format private key of the publisher. |
publicKeyCryptoSpec |
string | The specification for the public cryptography algorithms to be used for communication with Auth |
distributionCryptoSpec |
string | The specification for the symmetric cryptography algorithms to be used for communication with Auth |
sessionCryptoSpec |
string | The specification for the symmetric cryptography algorithms to be used for publishing messages to the subscribers |
numKeysPerRequest |
int | The number of session keys to be requested per session key request to Auth |