log.info("TLS Policy: TRUST_FIRST_CERTIFICATE");
return new TrustFirstCertificateTlsPolicy(new KeystoreCertificateRepository(sslKeystore));
}
else if( tlsPolicyName.equals("TRUST_KNOWN_CERTIFICATE") ) {
log.info("TLS Policy: TRUST_KNOWN_CERTIFICATE");
return new TrustKnownCertificateTlsPolicy(new KeystoreCertificateRepository(sslKeystore));
}
else if( tlsPolicyName.equals("INSECURE") ) {
log.warn("TLS Policy: INSECURE");
return new InsecureTlsPolicy();
}