/** * Generates a signed PUT 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 headersMap * headers to add to the signed URL, may be null. * Headers that <b>must</b> match between the signed URL and the actual request include: * content-md5, content-type, and any header starting with 'x-amz-'. * @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 to PUT an object into S3. */ public String createSignedPutUrl(String bucketName, String objectKey, Map<String, Object> headersMap, Date expiryTime) { return createSignedPutUrl(bucketName, objectKey, headersMap, expiryTime, false); }
/** * Generates a signed PUT 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 headersMap * headers to add to the signed URL, may be null. * Headers that <b>must</b> match between the signed URL and the actual request include: * content-md5, content-type, and any header starting with 'x-amz-'. * @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 to PUT an object into S3. */ public String createSignedPutUrl(String bucketName, String objectKey, Map<String, Object> headersMap, Date expiryTime) { return createSignedPutUrl(bucketName, objectKey, headersMap, expiryTime, false); }
/** * Generates a signed PUT 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 headersMap * headers to add to the signed URL, may be null. * Headers that <b>must</b> match between the signed URL and the actual request include: * content-md5, content-type, and any header starting with 'x-amz-'. * @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 to PUT an object into S3. * @throws S3ServiceException */ @Deprecated public String createSignedPutUrl(String bucketName, String objectKey, Map<String, Object> headersMap, ProviderCredentials credentials, Date expiryTime) throws S3ServiceException { return createSignedPutUrl(bucketName, objectKey, headersMap, credentials, expiryTime, false); }
/** * Generates a signed PUT 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 headersMap * headers to add to the signed URL, may be null. * Headers that <b>must</b> match between the signed URL and the actual request include: * content-md5, content-type, and any header starting with 'x-amz-'. * @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 to PUT an object into S3. * @throws S3ServiceException */ @Deprecated public String createSignedPutUrl(String bucketName, String objectKey, Map<String, Object> headersMap, ProviderCredentials credentials, Date expiryTime) throws S3ServiceException { return createSignedPutUrl(bucketName, objectKey, headersMap, credentials, expiryTime, false); }
public String signPut(GatekeeperMessage requestMessage, ClientInformation clientInformation,SignatureRequest signatureRequest) throws S3ServiceException { updateObject(signatureRequest, requestMessage.getMessageProperties()); return s3Service.createSignedPutUrl(signatureRequest.getBucketName(), signatureRequest.getObjectKey(), signatureRequest.getObjectMetadata(), calculateExpiryTime(secondsUntilExpiry), false); }
String putUrl = s3Service.createSignedPutUrl(bucket.getName(), object.getKey(), object.getMetadataMap(), expiryDate, false);
public String signPut(GatekeeperMessage requestMessage, ClientInformation clientInformation,SignatureRequest signatureRequest) throws S3ServiceException { updateObject(signatureRequest, requestMessage.getMessageProperties()); return s3Service.createSignedPutUrl(signatureRequest.getBucketName(), signatureRequest.getObjectKey(), signatureRequest.getObjectMetadata(), calculateExpiryTime(secondsUntilExpiry), false); }
String putUrl = s3Service.createSignedPutUrl(bucket.getName(), object.getKey(), object.getMetadataMap(), expiryDate, false);