Package org.somda.sdc.dpws.crypto
Interface CachingCryptoSettings
-
- All Superinterfaces:
CryptoSettings
public interface CachingCryptoSettings extends CryptoSettings
Extends the defaultCryptoSettingswith a cache.Note: Remember invalidating the cache if the content of the
CryptoSettingschanges!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<SSLContext>getSslContext()Retrieves 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 Detail
-
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 anSSLContextas cached result for the crypto settings.- Parameters:
sslContext- to cache
-
-