Skip to content

#239 allow caching of created SSLContext instances in CryptoSettings

Lukas Deichmann requested to merge feature/#239_crypto_caching into develop

This MR adds a new interface called CachingCryptoSettings, which enables implementations of it to cache created SSLContext instances. It turns out that caching inside CryptoConfigurator is rather difficult, as cache invalidation is essentially impossible. Equality of CryptoSettings instances does not mean that the SSLContext is still appropriate, as the parameters might have changed. Therefore, cache invalidation is now delegated to the user of CachingCryptoSettings.

The following aspects have been respected by the author of this merge request, confirmed by both merge request assignee and reviewer:

  • Adherence to coding conventions
    • Merge Request Assignee
    • Reviewer
  • Adherence to javadoc conventions
    • Merge Request Assignee
    • Reviewer
  • Changelog update (necessity checked and entry added or not added respectively)
    • Merge Request Assignee
    • Reviewer

Closes #239 (closed)

Edited by David Gregorczyk

Merge request reports