Accessor: net/SecureCommServer

net/SecureCommServer

This accessor is used for accessing authorization service provided by a local authorization entity, Auth (https://github.com/iotauth/iotauth), and for secure communication with a SecureCommClient.

Specifically, this access listens to secure communication requests from clients and handles the client requests.

This accessor internally manages the credentials (cryptographic keys) for communication with remote Auth and remote client.

All the messages to/from remote Auth and client are protected using the credentials, while input/output data of this accessor is in plain text.

This accessor requires the 'iotAuth', and 'dataConverter' modules.

Version:
  • $$Id$$
Author:
  • Hokeun Kim
Source:
Inputs:
Name Type Description
toSend
toSendID int
Outputs:
Name Type Description
listening int
connection Includes information of the remote client
received
receivedID
Parameters:
Name Type Description
serverName string The server's unique name in string.
serverPort int Server's port number.
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 server is registered.
serverPrivateKeyPath string The path for the pem format private key of the server.
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 communication with the client
receiveType string Data type of the received data from client.
sendType string Data type of the sent data to client.