Help Center/
KooGallery/
Access Guide/
SaaS Access Guide V1.0 (Deprecated)/
Code Example (Java)/
ISV Server Signing a Response Message Body
Updated on 2025-11-27 GMT+08:00
ISV Server Signing a Response Message Body
Code Invocation
/**
* Demo of generating a signature of an HTTP response body
* @param key --Access key obtained on the Seller Console. Log in to the Seller Console to view the access key.
* @param body --HTTP response message body
* @return --Encryption result
* @throws InvalidKeyException
* @throws NoSuchAlgorithmException
* @throws IllegalStateException
* @throws UnsupportedEncodingException
*/
public static String generateResponseBodySignature(String key, String body)
throws InvalidKeyException, NoSuchAlgorithmException,
IllegalStateException, UnsupportedEncodingException
{
return base_64(hmacSHA256(key, body));
}
Parent topic: Code Example (Java)
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot