Class KeyStoreManager

java.lang.Object
com.jalios.jcms.security.KeyStoreManager
All Implemented Interfaces:
JPropertiesListener

public class KeyStoreManager extends Object implements JPropertiesListener
  • Field Details

  • Method Details

    • getInstance

      public static KeyStoreManager getInstance()
    • validateConfiguration

      public static ControllerStatus validateConfiguration(JProperties jproperties, List<JcmsMessage> informationMessagesCollector)
    • isInitialized

      public boolean isInitialized()
    • getIssuerPublicKeyMap

      public Map<String,PublicKey> getIssuerPublicKeyMap()
    • getCrlMap

      public Map<String,X509CRL> getCrlMap()
    • getPrivateKey

      public PrivateKey getPrivateKey()
    • propertiesChange

      public void propertiesChange(JProperties properties)
      Description copied from interface: JPropertiesListener
      Invoked after properties have been modified in JCMS and save on disk.

      You cannot alter the value received in parameters.

      Note that properties parameter may be null, a limited set of site properties, or all site properties.

      To check that a property has been modified, reload the "current" property instead using channel.getProperties or channel.getProperty.

      Specified by:
      propertiesChange in interface JPropertiesListener
      Parameters:
      properties - the properties which have been submitted to change
    • readPrivateKey

      public static PrivateKey readPrivateKey(File privateKeyFile, String password)
      Read a private key file
      Parameters:
      privateKeyFile - the private key file
      password - the password to read the key
      Returns:
      the PrivateKey object, or null if any errors occurs