/** * Calculate the hash of the request's payload. In case of pre-sign, the * existing code would generate the hash of an empty byte array and returns * it. This method can be overridden by sub classes to provide different * values (e.g) For S3 pre-signing, the content hash calculation is * different from the general implementation. * */ protected String calculateContentHashPresign(SignableRequest<?> request) { return calculateContentHash(request); }
@Override protected String calculateContentHash(SignableRequest<?> request) { if ("https".equals(request.getEndpoint().getScheme())) { return "UNSIGNED-PAYLOAD"; } return super.calculateContentHash(request); } }
return CONTENT_SHA_256; } else { return super.calculateContentHash(request);
/** * Calculate the hash of the request's payload. In case of pre-sign, the * existing code would generate the hash of an empty byte array and returns * it. This method can be overridden by sub classes to provide different * values (e.g) For S3 pre-signing, the content hash calculation is * different from the general implementation. */ protected String calculateContentHashPresign(Request<?> request) { return calculateContentHash(request); }
/** * Calculate the hash of the request's payload. In case of pre-sign, the * existing code would generate the hash of an empty byte array and returns * it. This method can be overridden by sub classes to provide different * values (e.g) For S3 pre-signing, the content hash calculation is * different from the general implementation. * */ protected String calculateContentHashPresign(SignableRequest<?> request) { return calculateContentHash(request); }
signerParams.getFormattedSigningDateTime()); String contentSha256 = calculateContentHash(request);
@Override protected String calculateContentHash(SignableRequest<?> request) { if ("https".equals(request.getEndpoint().getScheme())) { return "UNSIGNED-PAYLOAD"; } return super.calculateContentHash(request); } }
return CONTENT_SHA_256; return super.calculateContentHash(request);
/** * Calculate the hash of the request's payload. In case of pre-sign, the * existing code would generate the hash of an empty byte array and returns * it. This method can be overridden by sub classes to provide different * values (e.g) For S3 pre-signing, the content hash calculation is * different from the general implementation. */ protected String calculateContentHashPresign(Request<?> request) { return calculateContentHash(request); }
/** * Calculate the hash of the request's payload. In case of pre-sign, the * existing code would generate the hash of an empty byte array and returns * it. This method can be overridden by sub classes to provide different * values (e.g) For S3 pre-signing, the content hash calculation is * different from the general implementation. * */ protected String calculateContentHashPresign(SignableRequest<?> request) { return calculateContentHash(request); }
/** * Calculate the hash of the request's payload. In case of pre-sign, the * existing code would generate the hash of an empty byte array and returns * it. This method can be overridden by sub classes to provide different * values (e.g) For S3 pre-signing, the content hash calculation is * different from the general implementation. */ protected String calculateContentHashPresign(Request<?> request) { return calculateContentHash(request); }
final String scope = getScope(request, dateStamp); final String contentSha256 = calculateContentHash(request);
signerParams.getFormattedSigningDateTime()); String contentSha256 = calculateContentHash(request);
@Override protected String calculateContentHash(SignableRequest<?> request) { if ("https".equals(request.getEndpoint().getScheme())) { return "UNSIGNED-PAYLOAD"; } return super.calculateContentHash(request); } }
@Override protected String calculateContentHash(final SignableRequest<?> request) { if (shouldAddContentUnsignedPayloadInHeader(request.getHttpMethod().name())) { return CONTENT_UNSIGNED_PAYLOAD; } return super.calculateContentHash(request); }
return CONTENT_SHA_256; } else { return super.calculateContentHash(request);
return CONTENT_SHA_256; return super.calculateContentHash(request);
signerParams.getFormattedSigningDateTime()); String contentSha256 = calculateContentHash(request);
final String scope = getScope(request, dateStamp); final String contentSha256 = calculateContentHash(request);
final String scope = getScope(request, dateStamp); final String contentSha256 = calculateContentHash(request);