Class AlfrescoKeyStoreImpl.KeyInfoManager

java.lang.Object
org.alfresco.encryption.AlfrescoKeyStoreImpl.KeyInfoManager
Enclosing class:
AlfrescoKeyStoreImpl

public static class AlfrescoKeyStoreImpl.KeyInfoManager extends Object
  • Method Details

    • getKeyInfo

    • loadKeyMetaData

      protected void loadKeyMetaData() throws IOException, FileNotFoundException
      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 for AlfrescoKeyStore.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

      public void removeKeyInformation(String keyAlias)
    • loadKeyInformation

      protected AlfrescoKeyStoreImpl.KeyInformation loadKeyInformation(Properties keyProps, String keyAlias, String prefix)
    • getKeyStorePassword

      public String getKeyStorePassword()
    • clearKeyStorePassword

      public void clearKeyStorePassword()
    • getKeyInformation

      public AlfrescoKeyStoreImpl.KeyInformation getKeyInformation(String keyAlias)