/** * Set the encryption status for the given property. * * @param name The name of the property * @param encrypt True to encrypt the property, false to decrypt * @return True if the property's encryption status changed, otherwise false */ public static boolean setPropertyEncrypted(String name, boolean encrypt) { if (properties == null) { if (isSetupMode()) { return false; } properties = JiveProperties.getInstance(); } return properties.setPropertyEncrypted(name, encrypt); }
/** * Set the encryption status for the given property. * * @param name The name of the property * @param encrypt True to encrypt the property, false to decrypt * @return True if the property's encryption status changed, otherwise false */ public static boolean setPropertyEncrypted(String name, boolean encrypt) { if (properties == null) { if (isSetupMode()) { return false; } properties = JiveProperties.getInstance(); } return properties.setPropertyEncrypted(name, encrypt); }