Class DecryptRequest

    • Constructor Detail

      • DecryptRequest

        public DecryptRequest()
      • DecryptRequest

        public DecryptRequest​(DecryptRequest source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getCiphertextBlob

        public String getCiphertextBlob()
        Get 待解密的密文数据
        Returns:
        CiphertextBlob 待解密的密文数据
      • setCiphertextBlob

        public void setCiphertextBlob​(String CiphertextBlob)
        Set 待解密的密文数据
        Parameters:
        CiphertextBlob - 待解密的密文数据
      • getEncryptionContext

        public String getEncryptionContext()
        Get key/value对的json字符串,如果Encrypt指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024字符
        Returns:
        EncryptionContext key/value对的json字符串,如果Encrypt指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024字符
      • setEncryptionContext

        public void setEncryptionContext​(String EncryptionContext)
        Set key/value对的json字符串,如果Encrypt指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024字符
        Parameters:
        EncryptionContext - key/value对的json字符串,如果Encrypt指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024字符
      • getEncryptionPublicKey

        public String getEncryptionPublicKey()
        Get PEM 格式公钥字符串,支持 RSA2048 和 SM2 公钥,用于对返回数据中的 Plaintext 值进行加密。若为空,则不对 Plaintext 值加密。
        Returns:
        EncryptionPublicKey PEM 格式公钥字符串,支持 RSA2048 和 SM2 公钥,用于对返回数据中的 Plaintext 值进行加密。若为空,则不对 Plaintext 值加密。
      • setEncryptionPublicKey

        public void setEncryptionPublicKey​(String EncryptionPublicKey)
        Set PEM 格式公钥字符串,支持 RSA2048 和 SM2 公钥,用于对返回数据中的 Plaintext 值进行加密。若为空,则不对 Plaintext 值加密。
        Parameters:
        EncryptionPublicKey - PEM 格式公钥字符串,支持 RSA2048 和 SM2 公钥,用于对返回数据中的 Plaintext 值进行加密。若为空,则不对 Plaintext 值加密。
      • getEncryptionAlgorithm

        public String getEncryptionAlgorithm()
        Get 非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(以 C1C3C2 格式返回密文),SM2_C1C3C2_ASN1 (以 C1C3C2 ASN1 格式返回密文),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。
        Returns:
        EncryptionAlgorithm 非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(以 C1C3C2 格式返回密文),SM2_C1C3C2_ASN1 (以 C1C3C2 ASN1 格式返回密文),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。
      • setEncryptionAlgorithm

        public void setEncryptionAlgorithm​(String EncryptionAlgorithm)
        Set 非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(以 C1C3C2 格式返回密文),SM2_C1C3C2_ASN1 (以 C1C3C2 ASN1 格式返回密文),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。
        Parameters:
        EncryptionAlgorithm - 非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(以 C1C3C2 格式返回密文),SM2_C1C3C2_ASN1 (以 C1C3C2 ASN1 格式返回密文),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。