
org.postgresql.ssl.DefaultJavaSSLFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.postgresql
Show all versions of org.apache.servicemix.bundles.postgresql
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
/*
* Copyright (c) 2017, PostgreSQL Global Development Group
* See the LICENSE file in the project root for more information.
*/
package org.postgresql.ssl;
import java.util.Properties;
import javax.net.ssl.SSLSocketFactory;
/**
* Socket factory that uses Java's default truststore to validate server certificate.
* Note: it always validates server certificate, so it might result to downgrade to non-encrypted
* connection when default truststore lacks certificates to validate server.
*/
public class DefaultJavaSSLFactory extends WrappedFactory {
public DefaultJavaSSLFactory(Properties info) {
factory = (SSLSocketFactory) SSLSocketFactory.getDefault();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy