getBase64Signature

open fun getBase64Signature(signatureKey: Array<Byte>, data: String, algorithm: String): String

Method to get params signature for an "HTTP" request

Return

signature in base64 form e.g. c8db66725ae71d6d79447319e617115f4a920f5agcdabcb2838bd6b712b053c4=="

Parameters

signatureKey

: key bytes used to signature request

data

: data to sign

algorithm

: algorithm used in signature -> HmacSHA256 or HmacSHA512


open fun getBase64Signature(signatureKey: String, data: String, algorithm: String): String

Method to get params signature for an "HTTP" request

Return

signature in base64 form e.g. c8db66725ae71d6d79447319e617115f4a920f5agcdabcb2838bd6b712b053c4=="

Parameters

signatureKey

: key used to signature request

data

: data to sign

algorithm

: algorithm used in signature -> HmacSHA256 or HmacSHA512