Class EncryptRequest

    • Constructor Detail

      • EncryptRequest

        public EncryptRequest()
      • EncryptRequest

        public EncryptRequest​(EncryptRequest 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

      • getKeyId

        public String getKeyId()
        Get 调用CreateKey生成的CMK全局唯一标识符
        Returns:
        KeyId 调用CreateKey生成的CMK全局唯一标识符
      • setKeyId

        public void setKeyId​(String KeyId)
        Set 调用CreateKey生成的CMK全局唯一标识符
        Parameters:
        KeyId - 调用CreateKey生成的CMK全局唯一标识符
      • getPlaintext

        public String getPlaintext()
        Get 被加密的明文数据,该字段必须使用base64编码,原文最大长度支持4K
        Returns:
        Plaintext 被加密的明文数据,该字段必须使用base64编码,原文最大长度支持4K
      • setPlaintext

        public void setPlaintext​(String Plaintext)
        Set 被加密的明文数据,该字段必须使用base64编码,原文最大长度支持4K
        Parameters:
        Plaintext - 被加密的明文数据,该字段必须使用base64编码,原文最大长度支持4K
      • getEncryptionContext

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

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