Class CMS

java.lang.Object
com.netscape.cmscore.apps.CMS

public final class CMS extends Object
This represents the CMS server. Plugins can access other public objects such as subsystems via this inteface. This object also include a set of utility functions.
  • Field Details

  • Constructor Details

    • CMS

      public CMS()
  • Method Details

    • getProductName

      public static String getProductName() throws Exception
      Return the product name from /usr/share/pki/CS_SERVER_VERSION which is provided by the server theme package.
      Throws:
      Exception
    • getProductVersion

      public static String getProductVersion()
    • getInstanceDir

      public static String getInstanceDir()
    • getUserMessage

      public static String getUserMessage(String msgID, String... params)
      Retrieves the localized user message from UserMessages.properties.
      Parameters:
      msgID - message id defined in UserMessages.properties
      params - an array of parameters
      Returns:
      localized user message
    • getUserMessage

      public static String getUserMessage(Locale locale, String msgID, String... params)
      Retrieves the localized user message from UserMessages.properties.
      Parameters:
      locale - end-user locale
      msgID - message id defined in UserMessages.properties
      params - an array of parameters
      Returns:
      localized user message
    • getLogMessage

      public static String getLogMessage(String msgID, Object... params)
      Retrieves log message from LogMessages.properties or audit-events.properties.
      Parameters:
      msgID - message ID defined in LogMessages.properties or audit-events.properties
      params - string parameters
      Returns:
      localized log message
    • isSensitive

      public static boolean isSensitive(String name)
      Check whether the string is contains password
      Parameters:
      name - key string
      Returns:
      whether key is a password or not