Package org.kiwiproject.security
Interface KeyAndTrustStoreConfigProvider
- All Superinterfaces:
TrustStoreConfigProvider
- All Known Implementing Classes:
SecureEndpointsConfiguration,SSLContextConfiguration,TlsContextConfiguration
Defines a configuration interface for properties needed to create key and trust stores, and a contract to
be able to create an
SSLContext and SSLSocketFactory from this configuration.-
Method Summary
Modifier and TypeMethodDescriptionThe key store password (plain text).The path to the key store.default StringKey store type.default SSLContextConvert this configuration into aSSLContext.Methods inherited from interface org.kiwiproject.security.TrustStoreConfigProvider
getProtocol, getTrustStorePassword, getTrustStorePath, getTrustStoreType, isVerifyHostname, toSslSocketFactory
-
Method Details
-
getKeyStorePath
String getKeyStorePath()The path to the key store.- Returns:
- key store path
-
getKeyStorePassword
String getKeyStorePassword()The key store password (plain text).- Returns:
- key store password
-
getKeyStoreType
Key store type. Default is JKS.- Returns:
- key store type
- See Also:
-
toSSLContext
Convert this configuration into aSSLContext.- Specified by:
toSSLContextin interfaceTrustStoreConfigProvider- Returns:
- a new SSLContext instance
- See Also:
-