01: package de.schlund.pfixxml.util;
02:
03: /**
04: * Describe class StringUtil here.
05: *
06: *
07: * Created: Tue Apr 19 11:37:01 2005
08: *
09: * @author <a href="mailto:jtl@schlund.de">Jens Lautenbacher</a>
10: * @version 1.0
11: */
12: public class StringUtil {
13:
14: public static String replaceAll(String input, String regexp,
15: String replacement) {
16: if (input == null) {
17: return input;
18: }
19: return input.replaceAll(regexp, replacement);
20: }
21:
22: public static String sign(String input, String secret) {
23: String sign = MD5Utils.hex_md5(input + secret);
24: return input + "SIGN=" + sign;
25: }
26:
27: }
|