org.postgresql.ssl
public class SingleCertValidatingFactory extends WrappedFactory
This class requires a single String parameter specified by setting the connection property
sslfactoryarg
. The value of this property is the PEM-encoded remote server's SSL
certificate.
Where the certificate is loaded from is based upon the prefix of the
sslfactoryarg
property. The following table lists the valid set of prefixes.
Prefix | Example | Explanation |
---|---|---|
|
|
Loaded from the classpath. |
|
|
Loaded from the filesystem. |
|
|
Loaded from string value of the
environment variable. |
|
|
Loaded from string value of the
system property. |
-----BEGIN CERTIFICATE------ |
-----BEGIN CERTIFICATE----- MIIDQzCCAqygAwIBAgIJAOd1tlfiGoEoMA0GCSqGSIb3DQEBBQUAMHUxCzAJBgNV [... truncated ...] UCmmYqgiVkAGWRETVo+byOSDZ4swb10= -----END CERTIFICATE----- |
Loaded from string value of the argument. |
Modifier and Type | Class and Description |
---|---|
class |
SingleCertValidatingFactory.SingleCertTrustManager |
_factory
Constructor and Description |
---|
SingleCertValidatingFactory(String sslFactoryArg) |
createSocket, createSocket, createSocket, createSocket, createSocket, getDefaultCipherSuites, getSupportedCipherSuites
getDefault
createSocket
public SingleCertValidatingFactory(String sslFactoryArg) throws GeneralSecurityException
GeneralSecurityException
Copyright © 2018 PostgreSQL Global Development Group. All rights reserved.