Package com.example
Class CustomCryptoSettings
-
- All Implemented Interfaces:
-
org.somda.sdc.dpws.crypto.CachingCryptoSettings,org.somda.sdc.dpws.crypto.CryptoSettings
public class CustomCryptoSettings implements CachingCryptoSettings
-
-
Field Summary
Fields Modifier and Type Field Description public StringkeyStorePasswordpublic StringtrustStorePassword
-
Constructor Summary
Constructors Constructor Description CustomCryptoSettings(Array<byte> keyStore, Array<byte> trustStore, String keyStorePassword, String trustStorePassword)CustomCryptoSettings()
-
Method Summary
Modifier and Type Method Description StringgetKeyStorePassword()StringgetTrustStorePassword()static CustomCryptoSettingsfromKeyStore(String keyStorePath, String trustStorePath, String keyStorePassword, String trustStorePassword)static CustomCryptoSettingsfromKeyFile(String userKeyFilePath, String userCertFilePath, String caCertFilePath, String userKeyPassword)Optional<InputStream>getKeyStoreStream()Optional<InputStream>getTrustStoreStream()synchronized Optional<SSLContext>getSslContext()synchronized voidsetSslContext(SSLContext sslContext)-
-
Method Detail
-
getKeyStorePassword
String getKeyStorePassword()
-
getTrustStorePassword
String getTrustStorePassword()
-
fromKeyStore
static CustomCryptoSettings fromKeyStore(String keyStorePath, String trustStorePath, String keyStorePassword, String trustStorePassword)
-
fromKeyFile
static CustomCryptoSettings fromKeyFile(String userKeyFilePath, String userCertFilePath, String caCertFilePath, String userKeyPassword)
-
getKeyStoreStream
Optional<InputStream> getKeyStoreStream()
-
getTrustStoreStream
Optional<InputStream> getTrustStoreStream()
-
getSslContext
synchronized Optional<SSLContext> getSslContext()
-
setSslContext
synchronized void setSslContext(SSLContext sslContext)
-
-
-
-