38 char[] passphrase = null;
39 if (password != null) {
42 KeyStore cacerts = null;
44 if (cacertsFN != null) {
45 cacerts = KeyStore.getInstance(KeyStore.getDefaultType());
46 FileInputStream cacertsFile =
new FileInputStream(cacertsFN);
47 cacerts.load(cacertsFile, passphrase);
51 SSLContext context = SSLContext.getInstance(
"SSL");
52 context.init(null,
new TrustManager[] {
new EasyX509TrustManager(cacerts) }, null);
54 }
catch (Exception e) {
55 log.error(e.getMessage(), e);
56 throw new HttpClientError(e.toString());
Logger log
Definition: EasyCASSLProtocolSocketFactory.java:26
String decrypt(String encryptedString)
Definition: EncryptionService.java:34
EncryptionService encryptionService
Definition: EasyCASSLProtocolSocketFactory.java:29
AppConfiguration appConfiguration
Definition: EasyCASSLProtocolSocketFactory.java:32