Class CMS
java.lang.Object
com.netscape.cmscore.apps.CMS
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final intstatic final org.slf4j.Loggerstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordStoreConstruct a password store.static Stringstatic Stringstatic StringgetLogMessage(String msgID, Object... params) Retrieves log message from LogMessages.properties or audit-events.properties.static StringReturn the product name from /usr/share/pki/CS_SERVER_VERSION which is provided by the server theme package.static Stringstatic StringgetUserMessage(String msgID, String... params) Retrieves the localized user message from UserMessages.properties.static StringgetUserMessage(Locale locale, String msgID, String... params) Retrieves the localized user message from UserMessages.properties.static booleanisSensitive(String name) Check whether the string is contains password
-
Field Details
-
logger
public static final org.slf4j.Logger logger -
DEBUG_OBNOXIOUS
public static final int DEBUG_OBNOXIOUS- See Also:
-
DEBUG_VERBOSE
public static final int DEBUG_VERBOSE- See Also:
-
DEBUG_INFORM
public static final int DEBUG_INFORM- See Also:
-
CONFIG_FILE
- See Also:
-
PRE_OP_MODE
public static final int PRE_OP_MODE- See Also:
-
RUNNING_MODE
public static final int RUNNING_MODE- See Also:
-
-
Constructor Details
-
CMS
public CMS()
-
-
Method Details
-
getProductName
-
getProductVersion
-
getInstanceDir
-
getInstanceID
-
getUserMessage
-
getUserMessage
Retrieves the localized user message from UserMessages.properties.- Parameters:
locale- end-user localemsgID- message id defined in UserMessages.propertiesparams- an array of parameters- Returns:
- localized user message
-
getLogMessage
-
isSensitive
Check whether the string is contains password- Parameters:
name- key string- Returns:
- whether key is a password or not
-
createPasswordStore
Construct a password store. If the process was started by Nuxwdog return a NuxwdogPasswordStore. Otherwise the class name is read from the "passwordClass" key in the map, an instance is constructed, its init() method is called with the value of the "passwordFile" key in the map, and the instance is returned.- Throws:
Exception
-