public class SecurityService
extends java.lang.Object
构造器和说明 |
---|
SecurityService() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
deleteBlockIp(java.lang.String id)
从 ip 黑名单删除一个 ip
|
AccessControlBean |
getAccessControlBean()
获取访问控制配置
|
java.util.Map<java.lang.String,java.lang.Object> |
getBlackIpList(int page,
int count)
获取 ip 黑名单
|
static SecurityService |
getInstance() |
WatermarkBean |
getParsedWatermarkBean(javax.servlet.http.HttpServletRequest req)
获取水印文字解析后的水印配置,只能解析通用公式,否则抛出异常
|
SecurityBean |
getSecurityBean()
获取安全防护设置
|
WatermarkBean |
getWatermarkBean()
获取水印配置
|
WatermarkBean |
parseWatermarkText(javax.servlet.http.HttpServletRequest req,
WatermarkBean bean)
解析水印文字,若解析结果为Primitive,作异常处理
|
void |
setAccessControlBean(AccessControlBean bean)
设置访问控制配置
|
void |
setSecurityBean(SecurityBean headerBean)
设置安全防护配置
|
void |
setWatermarkConfig(WatermarkBean bean)
设置水印配置,如果不是公式类型,则文字保留上次的公式文字
|
public static SecurityService getInstance()
public SecurityBean getSecurityBean()
public void setSecurityBean(SecurityBean headerBean)
public AccessControlBean getAccessControlBean()
public void setAccessControlBean(AccessControlBean bean)
bean
- 访问控制配置public java.util.Map<java.lang.String,java.lang.Object> getBlackIpList(int page, int count) throws java.lang.Exception
java.lang.Exception
public boolean deleteBlockIp(java.lang.String id) throws java.lang.Exception
java.lang.Exception
public WatermarkBean getWatermarkBean()
public void setWatermarkConfig(WatermarkBean bean)
bean
- 水印配置public WatermarkBean getParsedWatermarkBean(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public WatermarkBean parseWatermarkText(javax.servlet.http.HttpServletRequest req, WatermarkBean bean) throws java.lang.Exception
java.lang.Exception