Class InterfaceSecurityService
java.lang.Object
cn.herodotus.engine.oauth2.management.service.InterfaceSecurityService
Description: 请求加密服务
- Author:
- : gengwei.zheng
- Date:
- : 2021/9/30 18:08
-
Constructor Summary
ConstructorsConstructorDescriptionInterfaceSecurityService(cn.herodotus.engine.rest.protect.crypto.processor.HttpCryptoProcessor httpCryptoProcessor, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository) -
Method Summary
-
Constructor Details
-
InterfaceSecurityService
public InterfaceSecurityService(cn.herodotus.engine.rest.protect.crypto.processor.HttpCryptoProcessor httpCryptoProcessor, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository)
-
-
Method Details
-
createSecretKey
-
exchange
前端用后端PublicKey加密前端PublicKey后,将该值传递给后端,用于加密 AES KEY- Parameters:
sessionId- Session 标识confidentialBase64- 前端用后端PublicKey加密前端PublicKey。前端使用node-rsa加密后的数据是base64编码- Returns:
- 前端RSA PublicKey 加密后的 AES Key
-