Package com.example
Class CustomCryptoSettings
java.lang.Object
com.example.CustomCryptoSettings
- All Implemented Interfaces:
CachingCryptoSettings,CryptoSettings
-
Constructor Summary
ConstructorsConstructorDescriptionCustomCryptoSettings(byte[] keyStore, byte[] trustStore, String keyStorePassword, String trustStorePassword) -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomCryptoSettingsfromKeyFile(String userKeyFilePath, String userCertFilePath, String caCertFilePath, String userKeyPassword) static CustomCryptoSettingsfromKeyStore(String keyStorePath, String trustStorePath, String keyStorePassword, String trustStorePassword) voidsetSslContext(SSLContext sslContext)
-
Constructor Details
-
CustomCryptoSettings
-
CustomCryptoSettings
public CustomCryptoSettings()
-
-
Method Details
-
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
- Specified by:
getKeyStoreStreamin interfaceCryptoSettings
-
getKeyStorePassword
- Specified by:
getKeyStorePasswordin interfaceCryptoSettings
-
getTrustStoreStream
- Specified by:
getTrustStoreStreamin interfaceCryptoSettings
-
getTrustStorePassword
- Specified by:
getTrustStorePasswordin interfaceCryptoSettings
-
getSslContext
- Specified by:
getSslContextin interfaceCachingCryptoSettings
-
setSslContext
- Specified by:
setSslContextin interfaceCachingCryptoSettings
-