public static String credential(String accessKey,DateTime date,String region){
  return accessKey + "/" + date.toString(DateFormat.SIGNER_DATE_FORMAT)+ "/"+ region+ "/s3/aws4_request";
}

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