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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
getKeyStore(String keyStoreLocation)
Loads and returns an InputStream of the key store at the configured location.Properties
loadKeyMetaData(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:
IOException
FileNotFoundException
-
-