* ================================================================================
* Copyright (C) 2017 Amdocs
* ================================================================================
- * Modifications Copyright © 2018 IBM.
+ * Modifications Copyright © 2018-2019 IBM.
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import com.att.eelf.configuration.EELFLogger;
import com.att.eelf.configuration.EELFManager;
import org.json.JSONObject;
-import javax.net.ssl.SSLException;
-import org.onap.appc.exceptions.APPCException;
import org.apache.commons.lang.StringUtils;
/**
**/
public ConnectionBuilder(String trustStoreFile, char[] trustStorePasswd, int timeout, String serverIP)
throws KeyStoreException, IOException, KeyManagementException, NoSuchAlgorithmException,
- CertificateException ,APPCException{
+ CertificateException {
/* Load the specified trustStore */
KeyStore keystore = KeyStore.getInstance("JKS");
*/
public ConnectionBuilder(int mode, int timeout)
- throws NoSuchAlgorithmException, KeyStoreException, KeyManagementException,APPCException{
+ throws NoSuchAlgorithmException, KeyStoreException, KeyManagementException {
RequestConfig config = RequestConfig.custom().setSocketTimeout(timeout).build();
if (mode == 1) {
SSLContext sslcontext = SSLContexts.custom().loadTrustMaterial(null, new TrustSelfSignedStrategy()).build();