public static String sanitizeKsmAttributeValue(String ksmAttributeValue) {

        // Any non-empty values may contain sensitive information, and should
        // be replaced by the safe placeholder value
        if (ksmAttributeValue != null && !ksmAttributeValue.trim().isEmpty())
            return KSM_ATTRIBUTE_PLACEHOLDER_VALUE;

        // If the configuration value is empty, expose a null value
        else
            return null;

    }
Sanitize the value of the provided KSM config attribute. If the provided
config value is non-empty, it will be replaced with the placeholder
value to avoid leaking sensitive information. If the value is empty, it
will be replaced by `null`.

@param ksmAttributeValue
   The KSM configuration attribute value to sanitize.

@return
   The sanitized KSM configuration attribute value, stripped of any
   sensitive information.
extensions/guacamole-vault/modules/guacamole-vault-ksm/src/main/java/org/apache/guacamole/vault/ksm/conf/KsmAttributeService.java