跳过导航链接
C D G H P S T X 

C

cleanUnSafe(String) - 类 中的静态方法com.relaxed.common.xss.toolkit.HtmlKit
清理不安全的HTML标签,保留换行符 使用默认的白名单配置进行清理
cleanUnSafe(String, Safelist) - 类 中的静态方法com.relaxed.common.xss.toolkit.HtmlKit
清理不安全的HTML标签,保留换行符 使用指定的白名单配置进行清理
com.relaxed.common.xss - 程序包 com.relaxed.common.xss
 
com.relaxed.common.xss.config - 程序包 com.relaxed.common.xss.config
 
com.relaxed.common.xss.filters - 程序包 com.relaxed.common.xss.filters
 
com.relaxed.common.xss.json - 程序包 com.relaxed.common.xss.json
 
com.relaxed.common.xss.servlet - 程序包 com.relaxed.common.xss.servlet
 
com.relaxed.common.xss.toolkit - 程序包 com.relaxed.common.xss.toolkit
 

D

deserialize(JsonParser, DeserializationContext) - 类 中的方法com.relaxed.common.xss.json.XssStringJsonDeserializer
反序列化字符串,并进行XSS过滤
doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) - 类 中的方法com.relaxed.common.xss.filters.XssFilter
执行XSS过滤 使用XssRequestWrapper包装请求对象,对请求参数进行XSS过滤

G

getAttribute(String) - 类 中的方法com.relaxed.common.xss.servlet.XssRequestWrapper
获取指定名称的属性值,如果属性值是字符串则进行XSS过滤
getHeader(String) - 类 中的方法com.relaxed.common.xss.servlet.XssRequestWrapper
获取指定名称的请求头值,并进行XSS过滤
getParameter(String) - 类 中的方法com.relaxed.common.xss.servlet.XssRequestWrapper
获取指定名称的参数值,并进行XSS过滤
getParameterMap() - 类 中的方法com.relaxed.common.xss.servlet.XssRequestWrapper
获取所有参数,并对参数值进行XSS过滤
getParameterValues(String) - 类 中的方法com.relaxed.common.xss.servlet.XssRequestWrapper
获取指定名称的参数值数组,并对值进行XSS过滤
getQueryString() - 类 中的方法com.relaxed.common.xss.servlet.XssRequestWrapper
获取查询字符串,并进行XSS过滤

H

handledType() - 类 中的方法com.relaxed.common.xss.json.XssStringJsonDeserializer
获取处理的类型
handledType() - 类 中的方法com.relaxed.common.xss.json.XssStringJsonSerializer
获取处理的类型
HtmlKit - com.relaxed.common.xss.toolkit中的类
HTML工具类 提供HTML文本的清理和转换功能,主要用于XSS防护 使用Jsoup库进行HTML解析和清理

P

PREFIX - 类 中的静态变量com.relaxed.common.xss.config.XssProperties
 

S

serialize(String, JsonGenerator, SerializerProvider) - 类 中的方法com.relaxed.common.xss.json.XssStringJsonSerializer
序列化字符串,并进行XSS过滤
shouldNotFilter(HttpServletRequest) - 类 中的方法com.relaxed.common.xss.config.XssProperties
判断当前请求是否应该跳过XSS过滤
shouldNotFilter(HttpServletRequest) - 类 中的方法com.relaxed.common.xss.filters.XssFilter
判断当前请求是否应该跳过XSS过滤

T

toText(String, boolean) - 类 中的静态方法com.relaxed.common.xss.toolkit.HtmlKit
HTML转纯文本,保留换行样式
toText(String) - 类 中的静态方法com.relaxed.common.xss.toolkit.HtmlKit
HTML转纯文本,保留换行样式,默认合并换行符

X

XssAutoConfiguration - com.relaxed.common.xss中的类
XSS自动配置类 配置XSS过滤相关的组件,包括过滤器、Jackson序列化器等 支持通过配置文件控制XSS过滤的开启和关闭
XssAutoConfiguration() - 类 的构造器com.relaxed.common.xss.XssAutoConfiguration
 
XssFilter - com.relaxed.common.xss.filters中的类
XSS过滤器 用于过滤HTTP请求中的XSS攻击内容 继承自OncePerRequestFilter,确保每个请求只被过滤一次
XssFilter() - 类 的构造器com.relaxed.common.xss.filters.XssFilter
 
xssFilterRegistrationBean() - 类 中的方法com.relaxed.common.xss.XssAutoConfiguration
注册XSS过滤器 主要用于过滤QueryString、Header以及form表单中的参数
xssJacksonCustomizer() - 类 中的方法com.relaxed.common.xss.XssAutoConfiguration
注册Jackson的XSS序列化器 用于处理JSON类型参数的XSS过滤 在反序列化时进行XSS过滤
XssProperties - com.relaxed.common.xss.config中的类
XSS配置属性类 定义XSS过滤的配置属性,包括是否启用、包含路径、排除路径等 支持通过配置文件进行灵活配置
XssProperties() - 类 的构造器com.relaxed.common.xss.config.XssProperties
 
XssRequestWrapper - com.relaxed.common.xss.servlet中的类
XSS请求包装器 继承自HttpServletRequestWrapper,用于包装HTTP请求 对请求参数进行XSS过滤,包括参数、属性、头部等
XssRequestWrapper(HttpServletRequest) - 类 的构造器com.relaxed.common.xss.servlet.XssRequestWrapper
构造函数
XssStringJsonDeserializer - com.relaxed.common.xss.json中的类
XSS字符串JSON反序列化器 用于在JSON反序列化时对字符串进行XSS过滤 继承自JsonDeserializer,专门处理String类型的反序列化
XssStringJsonDeserializer() - 类 的构造器com.relaxed.common.xss.json.XssStringJsonDeserializer
 
XssStringJsonSerializer - com.relaxed.common.xss.json中的类
XSS字符串JSON序列化器 用于在JSON序列化时对字符串进行XSS过滤 继承自JsonSerializer,专门处理String类型的序列化
XssStringJsonSerializer() - 类 的构造器com.relaxed.common.xss.json.XssStringJsonSerializer
 
C D G H P S T X 
跳过导航链接

Copyright © 2025. All rights reserved.