类 SecureSingleton


  • public class SecureSingleton
    extends Object
    加解密单例
    从以下版本开始:
    2019年8月9日
    作者:
    ylyue
    • 构造器详细资料

      • SecureSingleton

        public SecureSingleton()
    • 方法详细资料

      • getAES

        public static cn.hutool.crypto.symmetric.AES getAES()
        获取自动配置单例 - AES
        返回:
        AES 单例
      • getRSA

        public static cn.hutool.crypto.asymmetric.RSA getRSA()
        获取自动配置单例 - RSA
        返回:
        RSA 单例
      • rsaUriDecodingAndDecrypt

        public static com.alibaba.fastjson.JSONObject rsaUriDecodingAndDecrypt​(String messageBody)
        1. 将URI转义内容进行解码
        2. 将RSA分段加密内容,进行分段解密
        参数:
        messageBody - URI转义后的消息体
        返回:
        解密后的JSON