Class OpenSslX509TrustManagerWrapper


  • final class OpenSslX509TrustManagerWrapper
    extends java.lang.Object
    Utility which allows to wrap X509TrustManager implementations with the internal implementation used by SSLContextImpl that provides extended verification. This is really a "hack" until there is an official API as requested on the in JDK-8210843.
    • Constructor Detail

      • OpenSslX509TrustManagerWrapper

        private OpenSslX509TrustManagerWrapper()
    • Method Detail

      • wrapIfNeeded

        static javax.net.ssl.X509TrustManager wrapIfNeeded​(javax.net.ssl.X509TrustManager trustManager)
      • newSSLContext

        private static javax.net.ssl.SSLContext newSSLContext()
                                                       throws java.security.NoSuchAlgorithmException,
                                                              java.security.NoSuchProviderException
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.NoSuchProviderException