org.jets3t.servlets.gatekeeper.impl
Class RenameToUuidUrlSigner
java.lang.Object
org.jets3t.servlets.gatekeeper.UrlSigner
org.jets3t.servlets.gatekeeper.impl.DefaultUrlSigner
org.jets3t.servlets.gatekeeper.impl.RenameToUuidUrlSigner
public class RenameToUuidUrlSigner
- extends DefaultUrlSigner
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
Constructor Summary |
RenameToUuidUrlSigner(javax.servlet.ServletConfig servletConfig)
Constructs the UrlSigner with the required parameters. |
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