Interface CachingCryptoSettings

All Superinterfaces:
CryptoSettings

public interface CachingCryptoSettings extends CryptoSettings
Extends the default CryptoSettings with a cache.

Note: Remember invalidating the cache if the content of the CryptoSettings changes!

  • Method Details

    • getSslContext

      Optional<SSLContext> getSslContext()
      Retrieves an already created SSL Context, or an empty optional if none exists.
      Returns:
      an SSL Context or none if not cached
    • setSslContext

      void setSslContext(SSLContext sslContext)
      Sets an SSLContext as cached result for the crypto settings.
      Parameters:
      sslContext - to cache