类 InterfaceSecurityService
java.lang.Object
cn.herodotus.engine.oauth2.management.service.InterfaceSecurityService
Description: 请求加密服务
- 作者:
- : gengwei.zheng
- Date:
- : 2021/9/30 18:08
-
构造器概要
构造器构造器说明InterfaceSecurityService(cn.herodotus.engine.rest.protect.crypto.processor.HttpCryptoProcessor httpCryptoProcessor, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository) -
方法概要
-
构造器详细资料
-
InterfaceSecurityService
@Autowired public InterfaceSecurityService(cn.herodotus.engine.rest.protect.crypto.processor.HttpCryptoProcessor httpCryptoProcessor, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository)
-
-
方法详细资料
-
createSecretKey
-
exchange
前端用后端PublicKey加密前端PublicKey后,将该值传递给后端,用于加密 AES KEY- 参数:
sessionId- Session 标识confidentialBase64- 前端用后端PublicKey加密前端PublicKey。前端使用node-rsa加密后的数据是base64编码- 返回:
- 前端RSA PublicKey 加密后的 AES Key
-