Class RenameToUuidUrlSigner
java.lang.Object
org.jets3t.servlets.gatekeeper.UrlSigner
org.jets3t.servlets.gatekeeper.impl.DefaultUrlSigner
org.jets3t.servlets.gatekeeper.impl.RenameToUuidUrlSigner
UrlSigner implementation that extends the DefaultUrlSigner class to perform some additional
work - speficically this class renames the S3 objects keys based on the transaction ID.
- Author:
- James Murty
-
Field Summary
Fields inherited from class org.jets3t.servlets.gatekeeper.impl.DefaultUrlSigner
TRANSACTION_ID_METADATA_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionRenameToUuidUrlSigner
(javax.servlet.ServletConfig servletConfig) Constructs the UrlSigner with the required parameters. -
Method Summary
Methods inherited from class org.jets3t.servlets.gatekeeper.impl.DefaultUrlSigner
signDelete, signGet, signGetAcl, signHead, signPut, signPutAcl
-
Constructor Details
-
RenameToUuidUrlSigner
public RenameToUuidUrlSigner(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException Constructs the UrlSigner with the required parameters.The required parameters that must be available in the servlet configuration are:
- S3BucketName: The bucket all objects are stored in (regardless of what bucket name the client provided).
- SecondsToSign: How many seconds until the signed URLs will expire
Note: this setting must allow enough time for the operation to complete before the expiry time is reached. For example, if uploads are expected over slow connections the expiry time must be long enough for the uploads to finish otherwise the uploaded file will be rejected after it has finished uploading.
- Parameters:
servletConfig
-- Throws:
javax.servlet.ServletException
-