code: public static String credential(String accessKey, DateTime date, String region) {
      return accessKey + "/" + date.toString(DateFormat.SIGNER_DATE_FORMAT) + "/" + region + "/s3/aws4_request";
    }
docs: Returns credential string of given access key, date and region.