Package org.alfresco.encryption
Interface KeyResourceLoader
- All Known Implementing Classes:
SpringKeyResourceLoader
public interface KeyResourceLoader
Manages key resources (key store and key store passwords)
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptiongetKeyStore
(String keyStoreLocation) Loads and returns an InputStream of the key store at the configured location.loadKeyMetaData
(String keyMetaDataFileLocation) Loads key metadata from the configured passwords file location.
-
Method Details
-
getKeyStore
Loads and returns an InputStream of the key store at the configured location. If the file cannot be found this method returns null.- Returns:
- InputStream
- Throws:
FileNotFoundException
-
loadKeyMetaData
Properties loadKeyMetaData(String keyMetaDataFileLocation) throws IOException, FileNotFoundException Loads key metadata from the configured passwords file location. Note that the passwords are not cached locally. If the file cannot be found this method returns null.- Returns:
- Properties
- Throws:
IOException
FileNotFoundException
-