当前位置:   article > 正文

防止sql注入_org.owasp.esapi.codecs.mysqlcodec maven

org.owasp.esapi.codecs.mysqlcodec maven
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
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/150525
推荐阅读
相关标签
  

闽ICP备14008679号