internal.sdmxdl.web.spi.DefaultSSLFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdmx-dl-api Show documentation
Show all versions of sdmx-dl-api Show documentation
Easily download official statistics - API
The newest version!
package internal.sdmxdl.web.spi;
import lombok.NonNull;
import sdmxdl.web.spi.SSLFactory;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLSocketFactory;
public enum DefaultSSLFactory implements SSLFactory {
INSTANCE;
@Override
public @NonNull SSLSocketFactory getSSLSocketFactory() {
return HttpsURLConnection.getDefaultSSLSocketFactory();
}
@Override
public @NonNull HostnameVerifier getHostnameVerifier() {
return HttpsURLConnection.getDefaultHostnameVerifier();
}
}