Package com.example
Class CustomCryptoSettings
- java.lang.Object
-
- com.example.CustomCryptoSettings
-
- All Implemented Interfaces:
CachingCryptoSettings,CryptoSettings
public class CustomCryptoSettings extends Object implements CachingCryptoSettings
-
-
Constructor Summary
Constructors Constructor Description CustomCryptoSettings()CustomCryptoSettings(byte[] keyStore, byte[] trustStore, String keyStorePassword, String trustStorePassword)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomCryptoSettingsfromKeyFile(String userKeyFilePath, String userCertFilePath, String caCertFilePath, String userKeyPassword)static CustomCryptoSettingsfromKeyStore(String keyStorePath, String trustStorePath, String keyStorePassword, String trustStorePassword)StringgetKeyStorePassword()Optional<InputStream>getKeyStoreStream()Optional<SSLContext>getSslContext()StringgetTrustStorePassword()Optional<InputStream>getTrustStoreStream()voidsetSslContext(SSLContext sslContext)
-
-
-
Method Detail
-
fromKeyStore
public static CustomCryptoSettings fromKeyStore(String keyStorePath, String trustStorePath, String keyStorePassword, String trustStorePassword)
-
fromKeyFile
public static CustomCryptoSettings fromKeyFile(String userKeyFilePath, String userCertFilePath, String caCertFilePath, String userKeyPassword)
-
getKeyStoreStream
public Optional<InputStream> getKeyStoreStream()
- Specified by:
getKeyStoreStreamin interfaceCryptoSettings
-
getKeyStorePassword
public String getKeyStorePassword()
- Specified by:
getKeyStorePasswordin interfaceCryptoSettings
-
getTrustStoreStream
public Optional<InputStream> getTrustStoreStream()
- Specified by:
getTrustStoreStreamin interfaceCryptoSettings
-
getTrustStorePassword
public String getTrustStorePassword()
- Specified by:
getTrustStorePasswordin interfaceCryptoSettings
-
getSslContext
public Optional<SSLContext> getSslContext()
- Specified by:
getSslContextin interfaceCachingCryptoSettings
-
setSslContext
public void setSslContext(SSLContext sslContext)
- Specified by:
setSslContextin interfaceCachingCryptoSettings
-
-