Package org.somda.sdc.dpws.crypto
Interface CachingCryptoSettings
- All Superinterfaces:
CryptoSettings
Extends the default
CryptoSettings with a cache.
Note: Remember invalidating the cache if the content of the CryptoSettings changes!
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves an already created SSL Context, or an empty optional if none exists.voidsetSslContext(SSLContext sslContext) Sets anSSLContextas cached result for the crypto settings.Methods inherited from interface org.somda.sdc.dpws.crypto.CryptoSettings
getKeyStorePassword, getKeyStoreStream, getTrustStorePassword, getTrustStoreStream
-
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
Sets anSSLContextas cached result for the crypto settings.- Parameters:
sslContext- to cache
-