Class OpenSslCachingX509KeyManagerFactory


  • public final class OpenSslCachingX509KeyManagerFactory
    extends javax.net.ssl.KeyManagerFactory
    Wraps another KeyManagerFactory and caches its chains / certs for an alias for better performance when using SslProvider.OPENSSL or SslProvider.OPENSSL_REFCNT. Because of the caching its important that the wrapped KeyManagerFactorys X509KeyManagers always return the same X509Certificate chain and PrivateKey for the same alias.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int maxCachedEntries  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) OpenSslKeyMaterialProvider newProvider​(java.lang.String password)  
      • Methods inherited from class javax.net.ssl.KeyManagerFactory

        getAlgorithm, getDefaultAlgorithm, getInstance, getInstance, getInstance, getKeyManagers, getProvider, init, init
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • maxCachedEntries

        private final int maxCachedEntries
    • Constructor Detail

      • OpenSslCachingX509KeyManagerFactory

        public OpenSslCachingX509KeyManagerFactory​(javax.net.ssl.KeyManagerFactory factory)
      • OpenSslCachingX509KeyManagerFactory

        public OpenSslCachingX509KeyManagerFactory​(javax.net.ssl.KeyManagerFactory factory,
                                                   int maxCachedEntries)