org.postgresql.ssl
Class SingleCertValidatingFactory.SingleCertTrustManager
java.lang.Object
org.postgresql.ssl.SingleCertValidatingFactory.SingleCertTrustManager
- All Implemented Interfaces:
- TrustManager, X509TrustManager
- Enclosing class:
- SingleCertValidatingFactory
public class SingleCertValidatingFactory.SingleCertTrustManager
- extends Object
- implements X509TrustManager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleCertValidatingFactory.SingleCertTrustManager
public SingleCertValidatingFactory.SingleCertTrustManager(InputStream in)
throws IOException,
GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain,
String authType)
throws CertificateException
- Specified by:
checkClientTrusted in interface X509TrustManager
- Throws:
CertificateException
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain,
String authType)
throws CertificateException
- Specified by:
checkServerTrusted in interface X509TrustManager
- Throws:
CertificateException
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers in interface X509TrustManager
Copyright © 2016 PostgreSQL Global Development Group. All rights reserved.