Class OpenSslX509TrustManagerWrapper

java.lang.Object
io.netty.handler.ssl.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.

  • Field Details

  • Constructor Details

    • OpenSslX509TrustManagerWrapper

      private OpenSslX509TrustManagerWrapper()
  • Method Details

    • isWrappingSupported

      static boolean isWrappingSupported()
    • 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