Package org.kiwiproject.security
Interface KeyAndTrustStoreConfigProvider
-
- All Superinterfaces:
TrustStoreConfigProvider
- All Known Implementing Classes:
SecureEndpointsConfiguration,SSLContextConfiguration,TlsContextConfiguration
public interface KeyAndTrustStoreConfigProvider extends TrustStoreConfigProvider
Defines a configuration interface for properties needed to create key and trust stores, and a contract to be able to create anSSLContextandSSLSocketFactoryfrom this configuration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetKeyStorePassword()The key store password (plain text).StringgetKeyStorePath()The path to the key store.default StringgetKeyStoreType()Key store type.default SSLContexttoSSLContext()Convert this configuration into aSSLContext.-
Methods inherited from interface org.kiwiproject.security.TrustStoreConfigProvider
getProtocol, getTrustStorePassword, getTrustStorePath, getTrustStoreType, isVerifyHostname, toSslSocketFactory
-
-
-
-
Method Detail
-
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
default String getKeyStoreType()
Key store type. Default is JKS.- Returns:
- key store type
- See Also:
KeyStoreType.JKS
-
toSSLContext
default SSLContext toSSLContext()
Convert this configuration into aSSLContext.- Specified by:
toSSLContextin interfaceTrustStoreConfigProvider- Returns:
- a new SSLContext instance
- See Also:
KiwiSecurity.createSslContext(String, String, String, String, String, String, String)
-
-