public class ConfigurationMaskingUtility extends Object
Configurations,
The reason for masking a property's value is so that the current values of such properties cannot be viewed by a
user by viewing the HTML source of a Configuration GUI page, e.g.:
<input type="password" value="********" .../>
would be rendered, rather than:
<input type="password" value="ACTUAL_PASSWORD" .../>| Constructor and Description |
|---|
ConfigurationMaskingUtility() |
| Modifier and Type | Method and Description |
|---|---|
static void |
maskConfiguration(org.rhq.core.domain.configuration.Configuration configuration,
org.rhq.core.domain.configuration.definition.ConfigurationDefinition configurationDefinition)
Mask the values of all simple properties of type PASSWORD in the configuration.
|
static void |
unmaskConfiguration(org.rhq.core.domain.configuration.Configuration configuration,
org.rhq.core.domain.configuration.Configuration unmaskedConfiguration)
Unmask the values of all masked simple properties of type PASSWORD in the configuration.
|
public static void maskConfiguration(@NotNull
org.rhq.core.domain.configuration.Configuration configuration,
@NotNull
org.rhq.core.domain.configuration.definition.ConfigurationDefinition configurationDefinition)
PropertySimple.mask(). The configuration does not need to be normalized; that is, properties
defined by the configuration definition do not need to exist in the configuration.configuration - the configuration to be maskedconfigurationDefinition - the configuration definition corresponding to the specified configuration; this is
used to determine which properties to mask - all simple properties of type
PASSWORD at any level within the configuration are maskedpublic static void unmaskConfiguration(@NotNull
org.rhq.core.domain.configuration.Configuration configuration,
@NotNull
org.rhq.core.domain.configuration.Configuration unmaskedConfiguration)
configuration - the configuration to be unmaskedunmaskedConfiguration - the unmasked configuration that should be used as the reference to unmask the
configurationCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.