Package org.somda.sdc.dpws.crypto
Interface CachingCryptoSettings
-
- All Implemented Interfaces:
-
org.somda.sdc.dpws.crypto.CryptoSettings
public interface CachingCryptoSettings implements CryptoSettings
Extends the default CryptoSettings with a cache.
Note: Remember invalidating the cache if the content of the CryptoSettings changes!
-
-
Method Summary
Modifier and Type Method Description abstract Optional<SSLContext>getSslContext()Retrieves an already created SSL Context, or an empty optional if none exists. abstract voidsetSslContext(SSLContext sslContext)Sets an SSLContext as cached result for the crypto settings. -
-
Method Detail
-
getSslContext
abstract 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
abstract void setSslContext(SSLContext sslContext)
Sets an SSLContext as cached result for the crypto settings.
- Parameters:
sslContext- to cache
-
-
-
-