- All Known Implementing Classes:
EmptyKeyConfig,PemKeyConfig,StoreKeyConfig
public interface SslKeyConfig
An interface for building a key manager at runtime.
The method for constructing the key manager is implementation dependent.
-
Method Summary
Modifier and TypeMethodDescriptiondefault SslTrustConfigCreate aSslTrustConfigbased on the underlying file store that backs this key configgetKeys()default boolean
-
Method Details
-
getDependentFiles
Collection<Path> getDependentFiles()- Returns:
- A collection of files that are read by this config object.
The
createKeyManager()method will read these files dynamically, so the behaviour of this key config may change whenever any of these files are modified.
-
createKeyManager
X509ExtendedKeyManager createKeyManager()- Returns:
- A new
X509ExtendedKeyManager. - Throws:
SslConfigException- if there is a problem configuring the key manager.
-
getKeys
List<Tuple<PrivateKey,X509Certificate>> getKeys()- Returns:
- A list of private keys and their associated certificates
-
getConfiguredCertificates
Collection<StoredCertificate> getConfiguredCertificates()- Returns:
- A collection of
certificatesused by this config.
-
hasKeyMaterial
default boolean hasKeyMaterial() -
asTrustConfig
Create aSslTrustConfigbased on the underlying file store that backs this key config
-