Here is the header, I specify the key that I get and the signature also:
Map <String, String> HeadersToSign = new HashMap<String, String>();
HMACUtil hmacUtil = new HMACUtil(SecretKey);
String signature = hmacUtil.signHeader("GET", resourceURI, HeadersToSign);
GetMethod get = new GetMethod(endpointGET);
get.addRequestHeader("Accept" , "application/xml");
get.addRequestHeader("Authorization", "SDM " + AccessKey + ":" + signature);
get.addRequestHeader("X-Obj-Attrs" , "userid, last_name");
Here is the error that it returns in the file of the log:
08/10 11:25:17.165 [http-bio-8050-exec-2] ERROR CustomAuthenticator 122 Authorization Failed for Custom Authentication. HMAC values do not match.