赞
踩
import org.owasp.esapi.ESAPI; import org.owasp.esapi.Encoder; import org.owasp.esapi.codecs.Codec; import org.owasp.esapi.codecs.MySQLCodec; import org.owasp.esapi.errors.EncodingException; import org.springframework.beans.factory.InitializingBean; import org.springframework.stereotype.Component; import java.io.IOException; /** * @Created * @Description: */ @Component public class SecurityEncoder implements Encoder, InitializingBean{ private Encoder encoder; private Codec mySQLCodec = new MySQLCodec(MySQLCodec.Mode.ANSI); @Override public String canonicalize(String input) { return encoder.canonicalize(input); } @Override public String canonicalize(String input, boolean strict) { return encoder.canonicalize(input, strict); } @Override public String canonicalize(String input, boolean restrictMultiple, boolean restrictMixed) { return encoder.canonicalize(input, restrictMultiple, res
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。