Package | Description |
---|---|
com.microej.demo.thermorest |
Demo mounting a Web server to handle a thermostat.
|
com.microej.demo.thermorest.cloud.aws |
This package contains AWS implementation of the cloud connector.
|
com.microej.demo.thermorest.endpoint |
This package contains the management of cloud connectors.
|
Modifier and Type | Method and Description |
---|---|
static void |
Main.addCloudConnector(HeadlessThermostat thermostat,
java.util.Properties properties,
CertificateLoader certificateLoader)
Add cloud connector, AWS if all the properties has been set, MQTT otherwise.
|
static PeriodicPublisherCloud |
Main.createAWSConnector(java.util.Properties properties,
CertificateLoader certificateLoader)
Creates an AWS connector.
|
Modifier and Type | Class and Description |
---|---|
class |
ResourceCertificateLoader
Certificate loader finding the file from the resources.
|
Modifier and Type | Method and Description |
---|---|
static javax.net.ssl.KeyManager[] |
SslContextHelper.getDefaultKeyManagers(CertificateLoader certificateLoader,
java.util.Properties properties)
Gets the key managers, generated based on properties :
- "aws.device.private.key.password": password of the password of device's private key. - "aws.device.private.key.path": path to the device's private key file. - "aws.device.certificate.path": path to the device's certificate file. |
static javax.net.ssl.KeyManager[] |
SslContextHelper.getKeyManagers(CertificateLoader certificateLoader,
java.lang.String certificateFileName,
java.lang.String keyFileName,
java.lang.String keyStorePassword)
Gets the key managers.
|
static javax.net.ssl.SSLContext |
SslContextHelper.getSslContext(java.util.Properties properties,
CertificateLoader certificateLoader)
Gets the SSL Context for AWS.
|
static javax.net.ssl.TrustManager[] |
SslContextHelper.getTrustManagers(CertificateLoader certificateLoader,
java.util.Properties properties)
Gets the trust managers, generated based on the property :
- "aws.certificate.list": a list of certificate to load separated by comma. |
Constructor and Description |
---|
ThermostatAWS(java.util.Properties properties,
CertificateLoader certificateLoader)
Instantiates a
ThermostatAWS using the properties and certificate loader provided in parameter. |
Constructor and Description |
---|
AWSUpload(HeadlessThermostat thermostat,
CertificateLoader loader,
java.util.Properties properties)
Instantiates an endpoint to receive aws credentials.
|