]> git.basschouten.com Git - openhab-addons.git/commit
[ihc] Support for TLSv1.2 (#10856)
authorpali <pauli.anttila@gmail.com>
Sun, 20 Jun 2021 18:07:12 +0000 (21:07 +0300)
committerGitHub <noreply@github.com>
Sun, 20 Jun 2021 18:07:12 +0000 (20:07 +0200)
commit61280ea4a25ecf8843b5c3f929a7743bb42ef902
tree029fb508f7accf0b6e72d9b9da00a12e752e9e9c
parent3d33ee0ab8309b6fcb611a6f7d11f71a5d4a1cd8
[ihc] Support for TLSv1.2 (#10856)

* [ihc] Support for TLSv1.2

So far IHC controller have supported only TLSv1. As TLSv1 is already
deprecated and upcoming IHC controller FW version will introduce support
for TLSv1.2.

This change introduce TLSv1.2 support for the binding. TLS version is
selectable to be backward compatible for older controller versions.

Communication error handling is also improved e.g. because of wrong
password or if Java environment doesn't support required TLS version.
When fatal communication error occurs, binding will not hammer
controller with retries as it need user actions.

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
* [ihc] Introduced auto mode and other improvements

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
* [ihc] introduced default constant

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
bundles/org.openhab.binding.ihc/README.md
bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/config/IhcConfiguration.java
bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/handler/IhcHandler.java
bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/ws/IhcClient.java
bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/ws/exeptions/IhcFatalExecption.java [new file with mode: 0644]
bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/ws/exeptions/IhcTlsExecption.java [new file with mode: 0644]
bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/ws/http/IhcConnectionPool.java
bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/ws/http/IhcHttpsClient.java
bundles/org.openhab.binding.ihc/src/main/resources/OH-INF/thing/controller.xml