getHMac

fun getHMac(data: String, key: String): String?

Computes RFC 2104-compliant HMAC signature. This can be used to sign the Amazon S3 request urls

Return

The Base64-encoded RFC 2104-compliant HMAC signature.

Parameters

data

The data to be signed.

key

The signing key.

Throws

when signature generation fails