added signature to AWS error so that we can compare the value we send with that returned from aws

git-svn-id: http://jclouds.googlecode.com/svn/trunk@1839 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-08-09 22:23:52 +00:00
parent 183ab4ad67
commit 30d1000165
1 changed files with 11 additions and 0 deletions

View File

@ -42,6 +42,7 @@ public class AWSError {
private String requestToken;
private Map<String, String> details = new HashMap<String, String>();
private String stringSigned;
private String signature;
@Override
public String toString() {
@ -55,6 +56,8 @@ public class AWSError {
sb.append(", message='").append(message).append('\'');
if (stringSigned != null)
sb.append(", stringSigned='").append(stringSigned).append('\'');
if (getSignature() != null)
sb.append(", signature='").append(getSignature()).append('\'');
if (details.size() != 0)
sb.append(", context='").append(details.toString()).append('\'').append('}');
return sb.toString();
@ -129,4 +132,12 @@ public class AWSError {
public String getRequestToken() {
return requestToken;
}
public void setSignature(String signature) {
this.signature = signature;
}
public String getSignature() {
return signature;
}
}