Answers for "linking to aws bucket endpoint from salesforce"

0

linking to aws bucket endpoint from salesforce

String key = XXXXXXXXXXXXXXXXXXXX
String secret = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
String stringToSign = 'PUT\n\n' + attach.ContentType + '\n' + '/' + bucketname + '/' + filename;
 
Blob mac = Crypto.generateMac('HMACSHA1', blob.valueOf(stringToSign), blob.valueof(secret));
String signed = EncodingUtil.base64Encode(mac);
String authHeader = 'AWS' + ' ' + key + ':' + signed;
Posted by: Guest on June-10-2020

Code answers related to "linking to aws bucket endpoint from salesforce"

Browse Popular Code Answers by Language