/** * Generates a signed DELETE URL. * * @param bucketName * the name of the bucket to include in the URL, must be a valid bucket name. * @param objectKey * the name of the object to include in the URL, if null only the bucket name is used. * @param expiryTime * the time after which URL's signature will no longer be valid. This time cannot be null. * * @return * a URL signed in such a way as to allow anyone do DELETE an object in S3. */ public String createSignedDeleteUrl(String bucketName, String objectKey, Date expiryTime) { return createSignedDeleteUrl(bucketName, objectKey, expiryTime, false); }
/** * Generates a signed DELETE URL. * * @param bucketName * the name of the bucket to include in the URL, must be a valid bucket name. * @param objectKey * the name of the object to include in the URL, if null only the bucket name is used. * @param expiryTime * the time after which URL's signature will no longer be valid. This time cannot be null. * * @return * a URL signed in such a way as to allow anyone do DELETE an object in S3. */ public String createSignedDeleteUrl(String bucketName, String objectKey, Date expiryTime) { return createSignedDeleteUrl(bucketName, objectKey, expiryTime, false); }
/** * Generates a signed DELETE URL. * * @deprecated 0.7.4 * * @param bucketName * the name of the bucket to include in the URL, must be a valid bucket name. * @param objectKey * the name of the object to include in the URL, if null only the bucket name is used. * @param credentials * the credentials of someone with sufficient privileges to grant access to the bucket/object * @param expiryTime * the time after which URL's signature will no longer be valid. This time cannot be null. * * @return * a URL signed in such a way as to allow anyone do DELETE an object in S3. * @throws S3ServiceException */ @Deprecated public String createSignedDeleteUrl(String bucketName, String objectKey, ProviderCredentials credentials, Date expiryTime) throws S3ServiceException { return createSignedDeleteUrl(bucketName, objectKey, credentials, expiryTime, false); }
/** * Generates a signed DELETE URL. * * @deprecated 0.7.4 * * @param bucketName * the name of the bucket to include in the URL, must be a valid bucket name. * @param objectKey * the name of the object to include in the URL, if null only the bucket name is used. * @param credentials * the credentials of someone with sufficient privileges to grant access to the bucket/object * @param expiryTime * the time after which URL's signature will no longer be valid. This time cannot be null. * * @return * a URL signed in such a way as to allow anyone do DELETE an object in S3. * @throws S3ServiceException */ @Deprecated public String createSignedDeleteUrl(String bucketName, String objectKey, ProviderCredentials credentials, Date expiryTime) throws S3ServiceException { return createSignedDeleteUrl(bucketName, objectKey, credentials, expiryTime, false); }
public String signDelete(GatekeeperMessage requestMessage, ClientInformation clientInformation,SignatureRequest signatureRequest) throws S3ServiceException { updateObject(signatureRequest, requestMessage.getMessageProperties()); return s3Service.createSignedDeleteUrl(signatureRequest.getBucketName(), signatureRequest.getObjectKey(), calculateExpiryTime(secondsUntilExpiry), false); }
public String signDelete(GatekeeperMessage requestMessage, ClientInformation clientInformation,SignatureRequest signatureRequest) throws S3ServiceException { updateObject(signatureRequest, requestMessage.getMessageProperties()); return s3Service.createSignedDeleteUrl(signatureRequest.getBucketName(), signatureRequest.getObjectKey(), calculateExpiryTime(secondsUntilExpiry), false); }
String deleteUrl = s3Service.createSignedDeleteUrl(bucket.getName(), object.getKey(), expiryDate, false);
String deleteUrl = s3Service.createSignedDeleteUrl(bucket.getName(), object.getKey(), expiryDate, false);