Package org.alfresco.encryption
Interface KeyResourceLoader
-
- All Known Implementing Classes:
SpringKeyResourceLoader
public interface KeyResourceLoaderManages key resources (key store and key store passwords)- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamgetKeyStore(String keyStoreLocation)Loads and returns an InputStream of the key store at the configured location.PropertiesloadKeyMetaData(String keyMetaDataFileLocation)Loads key metadata from the configured passwords file location.
-
-
-
Method Detail
-
getKeyStore
InputStream getKeyStore(String keyStoreLocation) throws FileNotFoundException
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:
IOExceptionFileNotFoundException
-
-