Modifier and Type | Method and Description |
---|---|
static String |
CommunicationUtils.decryptMessage(String encryptedMessage,
Key decryptKey)
Encrypts the message with the key that's passed in.
|
static String |
CommunicationUtils.encryptMessage(String message,
Key encryptionKey)
Encrypts the message with the key that's passed in.
|
static Map<String,String> |
TransportUtils.getHostAndPort(String ipString)
Given a server endpoint as a String, this method splits it into Protocol, Host and Port
|
static HttpURLConnection |
TransportUtils.getHttpConnection(String urlString)
This is a utility method that creates and returns a HTTP connection object.
|
static Map<String,String> |
TransportUtils.getInterfaceIPMap() |
static String |
TransportUtils.readResponseFromHttpRequest(HttpURLConnection httpConnection)
This is a utility method that reads and returns the response from a HTTP connection
|
static String |
CommunicationUtils.signMessage(String message,
PrivateKey signatureKey)
Signed a given message using the PrivateKey that's passes in.
|
static boolean |
CommunicationUtils.verifySignature(String data,
String signedData,
PublicKey verificationKey)
Verifies some signed-data against the a Public-Key to ensure that it was produced by the holder of the
corresponding Private Key.
|
Modifier and Type | Method and Description |
---|---|
protected void |
MQTTTransportHandler.connectToQueue()
Connects to the MQTT-Broker and if successfully established connection.
|
protected void |
MQTTTransportHandler.publishToQueue(String topic,
org.eclipse.paho.client.mqttv3.MqttMessage message) |
protected void |
MQTTTransportHandler.publishToQueue(String topic,
String payLoad)
This method is used to publish reply-messages for the control signals received.
|
protected void |
MQTTTransportHandler.publishToQueue(String topic,
String payLoad,
int qos,
boolean retained)
This is an overloaded method that publishes MQTT reply-messages for control signals
received form the IoT-Server.
|
protected void |
MQTTTransportHandler.subscribeToQueue()
Subscribes to the MQTT-Topic specific to this MQTT Client.
|
Modifier and Type | Method and Description |
---|---|
protected void |
XMPPTransportHandler.connectToServer()
Connects to the XMPP-Server and if attempt unsuccessful, then throws exception.
|
protected void |
XMPPTransportHandler.loginToServer(String username,
String password,
String resource)
If successfully established connection, then tries to Log in using the device's XMPP
Account credentials.
|
Copyright © 2017 WSO2. All rights reserved.