Package org.alfresco.encryption
Class AlfrescoKeyStoreImpl.KeyInfoManager
java.lang.Object
org.alfresco.encryption.AlfrescoKeyStoreImpl.KeyInfoManager
- Enclosing class:
- AlfrescoKeyStoreImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
getKeyInformation
(String keyAlias) protected AlfrescoKeyStoreImpl.KeyInformation
loadKeyInformation
(Properties keyProps, String keyAlias, String prefix) protected void
Set the map of key meta data (including passwords to access the keystore).void
removeKeyInformation
(String keyAlias)
-
Method Details
-
getKeyInfo
-
loadKeyMetaData
Set the map of key meta data (including passwords to access the keystore). Where required, null values must be inserted into the map to indicate the presence of a key that is not protected by a password. They entry forAlfrescoKeyStore.KEY_KEYSTORE_PASSWORD
is required if the keystore is password protected. WARNING. Storing passwords (keyMetaDataFileLocation) on the file system is not following best security practices. Loading of keys info from system (JVM) properties takes precedence over metadata file. Set the unique ID of the keystore and remove the metadata file location property to use JVM properties lookup instead. The property lookup format is the following:- [keystore-id].password - keystore password
- [keystore-id].aliases - comma separated list of aliases for the keys in the keystore
- [keystore-id].[alias].keyData - key data bytes in base64
- [keystore-id].[alias].algorithm - key algorithm
- [keystore-id].[alias].password - key password
- Throws:
IOException
FileNotFoundException
-
clear
public void clear() -
removeKeyInformation
-
loadKeyInformation
protected AlfrescoKeyStoreImpl.KeyInformation loadKeyInformation(Properties keyProps, String keyAlias, String prefix) -
getKeyStorePassword
-
clearKeyStorePassword
public void clearKeyStorePassword() -
getKeyInformation
-