11

使用拦截器对接口通信进行解密问题

 3 years ago
source link: https://www.v2ex.com/t/778535
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Java

使用拦截器对接口通信进行解密问题

  zhongpingjing · 1 天前 · 593 次点击
想用 spring 提供的 HandlerInterceptor 拦截请求来做接口数据的解密,通过 HttpServletRequest 获取到请求参数
解密后如何再把参数设置到 HttpServletRequest 中去?
HttpServletRequest 只有 getParameterMap()和 getQueryString()方法,没有对应的 set 方法。

如果通过拦截器的思路行不通,那应该通过什么方式来进行解密??

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK