Class KeyStoreParameters

java.lang.Object
org.alfresco.encryption.KeyStoreParameters

public class KeyStoreParameters extends Object
Stores Java keystore initialisation parameters. WARNING. Storing passwords (keyMetaDataFileLocation) on the file system is not following best security practices.
Since:
4.0
  • Constructor Details

    • KeyStoreParameters

      public KeyStoreParameters()
    • KeyStoreParameters

      public KeyStoreParameters(String id, String name, String type, String keyStoreProvider, String keyMetaDataFileLocation, String location)
      WARNING. Storing passwords (keyMetaDataFileLocation) on the file system is not following best security practices.

      Set the unique ID of the keystore and aliases to use Java system properties lookup instead. The property lookup format is:

      • [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
      Loading of keys info from system (JVM) properties takes precedence over metadata file.
      Parameters:
      id - unique identifier of the keystore
      name - human readable name of the keystore
      type - type of the keystore
      keyStoreProvider - keystore provider
      keyMetaDataFileLocation - path to keystore metadata file on the file system
      location - path to keystore on the file system
    • KeyStoreParameters

      @Deprecated public KeyStoreParameters(String name, String type, String keyStoreProvider, String keyMetaDataFileLocation, String location)
      Deprecated.
  • Method Details

    • init

      public void init()
    • getId

      public String getId()
    • getName

      public String getName()
    • getType

      public String getType()
    • getProvider

      public String getProvider()
    • getKeyMetaDataFileLocation

      public String getKeyMetaDataFileLocation()
    • getLocation

      public String getLocation()
    • setId

      public void setId(String id)
    • setName

      public void setName(String name)
    • setType

      public void setType(String type)
    • setProvider

      public void setProvider(String provider)
    • setKeyMetaDataFileLocation

      public void setKeyMetaDataFileLocation(String keyMetaDataFileLocation)
    • setLocation

      public void setLocation(String location)