Class TrustStoreHelper


  • public class TrustStoreHelper
    extends Object
    Helper class for the global trust store.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Field Detail

      • m_Properties

        protected adams.core.Properties m_Properties
        the properties.
      • m_Modified

        protected boolean m_Modified
        whether the settings got modified.
    • Method Detail

      • isModified

        public boolean isModified()
        Whether the settings got modified.
        Returns:
        true if modified
      • getTrustStoreFileName

        public String getTrustStoreFileName()
        Returns the trust store file.
        Returns:
        the file name, directory if no file defined
      • getTrustStoreFile

        public adams.core.io.PlaceholderFile getTrustStoreFile()
        Returns the trust store file.
        Returns:
        the file name, directory if no file defined
      • setTrustStoreFile

        public void setTrustStoreFile​(String value)
        Updates the trust store file.
        Parameters:
        value - the file
      • getTrustStorePassword

        public adams.core.base.BasePassword getTrustStorePassword()
        Returns the trust store password.
        Returns:
        the password
      • setTrustStorePassword

        public void setTrustStorePassword​(adams.core.base.BasePassword value)
        Updates the trust store password.
        Parameters:
        value - the password
      • reload

        public void reload()
        Reloads the properties file. Discards any unsaved settings.
      • save

        public boolean save()
        Saves the settings in the user's home directory.
        Returns:
        true if successfully saved
      • apply

        public void apply()
        Sets the system-wide properties of the trust store (when not pointing to dir).
      • getSingleton

        public static TrustStoreHelper getSingleton()
        Returns the singleton.
        Returns:
        the singleton