Annotation Interface Encrypted


@Inherited @Target(METHOD) @Retention(RUNTIME) @Documented public @interface Encrypted
加密传输
从以下版本开始:
1.0.5
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    加密的 AES Key 的 JSON 键 (POST 请求的时候需要从请求的 JSON 里面获取 AES Key) (type 为 AES 模式时使用)
    加密的内容的 JSON 键 (POST 请求的时候需要从请求的 JSON 里面获取内容)
    boolean
    解密输入数据
    boolean
    是否要加密输出数据
    需要解密的输入数据的 key
    加密输出数据的公钥的 key,这个需要前端传 public key 过来
    加密类型
  • 元素详细资料

    • decryptInput

      boolean decryptInput
      解密输入数据
      默认值:
      true
    • key

      String key
      需要解密的输入数据的 key
      默认值:
      "data"
    • encryptOutput

      boolean encryptOutput
      是否要加密输出数据
      默认值:
      true
    • outputEncryptPublicKey

      String outputEncryptPublicKey
      加密输出数据的公钥的 key,这个需要前端传 public key 过来
      默认值:
      "rsaPublicKey"
    • type

      加密类型
      返回:
      接口加密类型
      另请参阅:
      默认值:
      RSA
    • content

      String content
      加密的内容的 JSON 键 (POST 请求的时候需要从请求的 JSON 里面获取内容)
      返回:
      加密的内容的 JSON 键
      默认值:
      "content"
    • aesKey

      String aesKey
      加密的 AES Key 的 JSON 键 (POST 请求的时候需要从请求的 JSON 里面获取 AES Key) (type 为 AES 模式时使用)
      返回:
      加密的 AES Key 的 JSON 键
      默认值:
      "aesKey"