Class AlfrescoKeyStoreImpl.KeyInfoManager

  • Enclosing class:
    AlfrescoKeyStoreImpl

    public static class AlfrescoKeyStoreImpl.KeyInfoManager
    extends java.lang.Object
    • Method Detail

      • loadKeyMetaData

        protected void loadKeyMetaData()
                                throws java.io.IOException,
                                       java.io.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:
        java.io.IOException
        java.io.FileNotFoundException
      • clear

        public void clear()
      • removeKeyInformation

        public void removeKeyInformation​(java.lang.String keyAlias)
      • loadKeyInformation

        protected AlfrescoKeyStoreImpl.KeyInformation loadKeyInformation​(java.util.Properties keyProps,
                                                                         java.lang.String keyAlias,
                                                                         java.lang.String prefix)
      • getKeyStorePassword

        public java.lang.String getKeyStorePassword()
      • clearKeyStorePassword

        public void clearKeyStorePassword()