类 InterfaceSecurityService

java.lang.Object
cn.herodotus.engine.oauth2.management.service.InterfaceSecurityService

@Service public class InterfaceSecurityService extends Object

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)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    cn.herodotus.engine.assistant.definition.domain.oauth2.SecretKey
    createSecretKey(String clientId, String clientSecret, String sessionId)
     
    exchange(String sessionId, String confidentialBase64)
    前端用后端PublicKey加密前端PublicKey后,将该值传递给后端,用于加密 AES KEY

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • InterfaceSecurityService

      public InterfaceSecurityService(cn.herodotus.engine.rest.protect.crypto.processor.HttpCryptoProcessor httpCryptoProcessor, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository)
  • 方法详细资料

    • createSecretKey

      public cn.herodotus.engine.assistant.definition.domain.oauth2.SecretKey createSecretKey(String clientId, String clientSecret, String sessionId)
    • exchange

      public String exchange(String sessionId, String confidentialBase64)
      前端用后端PublicKey加密前端PublicKey后,将该值传递给后端,用于加密 AES KEY
      参数:
      sessionId - Session 标识
      confidentialBase64 - 前端用后端PublicKey加密前端PublicKey。前端使用node-rsa加密后的数据是base64编码
      返回:
      前端RSA PublicKey 加密后的 AES Key