2 * Copyright (c) 2010-2024 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.samsungtv.internal;
15 import javax.net.ssl.X509ExtendedTrustManager;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.io.net.http.TlsTrustManagerProvider;
19 import org.openhab.core.io.net.http.TrustAllTrustManager;
20 import org.osgi.service.component.annotations.Component;
23 * Provides a TrustManager to allow secure websocket connections to any TV (=server)
25 * @author Arjan Mels - Initial Contribution
29 public class SamsungTvTlsTrustManagerProvider implements TlsTrustManagerProvider {
32 public String getHostName() {
33 return "SmartViewSDK";
37 public X509ExtendedTrustManager getTrustManager() {
38 return TrustAllTrustManager.getInstance();