/** * Generates a signed HEAD 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 grant HEAD access to an S3 resource to whoever uses it. * @throws S3ServiceException */ public String createSignedHeadUrl(String bucketName, String objectKey, Date expiryTime) throws S3ServiceException { return createSignedHeadUrl(bucketName, objectKey, expiryTime, false); }
/** * Generates a signed HEAD 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 grant HEAD access to an S3 resource to whoever uses it. * @throws S3ServiceException */ public String createSignedHeadUrl(String bucketName, String objectKey, Date expiryTime) throws S3ServiceException { return createSignedHeadUrl(bucketName, objectKey, expiryTime, false); }
/** * Generates a signed HEAD 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 grant HEAD access to an S3 resource to whoever uses it. */ @Deprecated public String createSignedHeadUrl(String bucketName, String objectKey, ProviderCredentials credentials, Date expiryTime) { return createSignedHeadUrl(bucketName, objectKey, credentials, expiryTime, false); }
/** * Generates a signed HEAD 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 grant HEAD access to an S3 resource to whoever uses it. */ @Deprecated public String createSignedHeadUrl(String bucketName, String objectKey, ProviderCredentials credentials, Date expiryTime) { return createSignedHeadUrl(bucketName, objectKey, credentials, expiryTime, false); }
public String signHead(GatekeeperMessage requestMessage, ClientInformation clientInformation,SignatureRequest signatureRequest) throws S3ServiceException { updateObject(signatureRequest, requestMessage.getMessageProperties()); return s3Service.createSignedHeadUrl(signatureRequest.getBucketName(), signatureRequest.getObjectKey(), calculateExpiryTime(secondsUntilExpiry), false); }
public String signHead(GatekeeperMessage requestMessage, ClientInformation clientInformation,SignatureRequest signatureRequest) throws S3ServiceException { updateObject(signatureRequest, requestMessage.getMessageProperties()); return s3Service.createSignedHeadUrl(signatureRequest.getBucketName(), signatureRequest.getObjectKey(), calculateExpiryTime(secondsUntilExpiry), false); }
String headUrl = s3Service.createSignedHeadUrl(bucket.getName(), object.getKey(), expiryDate, false);
String headUrl = s3Service.createSignedHeadUrl(bucket.getName(), object.getKey(), expiryDate, false);