|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jets3t.servlets.gatekeeper.UrlSigner
org.jets3t.servlets.gatekeeper.impl.DefaultUrlSigner
public class DefaultUrlSigner
Default UrlSigner implementation that signs all requests, putting all objects in a specific S3 bucket and limiting the signature time to a configurable time period.
This implementation also demonstrates how objects may be modified, as it adds a metadata item to each signed object to store the transaction ID in which the object was signed. The transaction id is stored in the metadata name x-amx-gatekeeper-transaction-id
| Field Summary | |
|---|---|
static String |
TRANSACTION_ID_METADATA_NAME
|
| Constructor Summary | |
|---|---|
DefaultUrlSigner(javax.servlet.ServletConfig servletConfig)
Constructs the UrlSigner with the required parameters. |
|
| Method Summary | |
|---|---|
String |
signDelete(GatekeeperMessage requestMessage,
ClientInformation clientInformation,
SignatureRequest signatureRequest)
Generate a signed DELETE URL for the signature request. |
String |
signGet(GatekeeperMessage requestMessage,
ClientInformation clientInformation,
SignatureRequest signatureRequest)
Generate a signed GET URL for the signature request. |
String |
signGetAcl(GatekeeperMessage requestMessage,
ClientInformation clientInformation,
SignatureRequest signatureRequest)
Generate a signed GET URL for an ACL-based signature request. |
String |
signHead(GatekeeperMessage requestMessage,
ClientInformation clientInformation,
SignatureRequest signatureRequest)
Generate a signed HEAD URL for the signature request. |
String |
signPut(GatekeeperMessage requestMessage,
ClientInformation clientInformation,
SignatureRequest signatureRequest)
Generate a signed PUT URL for the signature request. |
String |
signPutAcl(GatekeeperMessage requestMessage,
ClientInformation clientInformation,
SignatureRequest signatureRequest)
Generate a signed PUT URL for an ACL-based signature request. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TRANSACTION_ID_METADATA_NAME
| Constructor Detail |
|---|
public DefaultUrlSigner(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
The required parameters that must be available in the servlet configuration are:
servletConfig -
javax.servlet.ServletException| Method Detail |
|---|
public String signDelete(GatekeeperMessage requestMessage,
ClientInformation clientInformation,
SignatureRequest signatureRequest)
throws S3ServiceException
UrlSigner
signDelete in class UrlSignerrequestMessage - the request message received from the client.clientInformation - information about the client's end-point, and any Session or Principal associated with the client.signatureRequest - a pre-approved signature request.
S3ServiceException
public String signGet(GatekeeperMessage requestMessage,
ClientInformation clientInformation,
SignatureRequest signatureRequest)
throws S3ServiceException
UrlSigner
signGet in class UrlSignerrequestMessage - the request message received from the client.clientInformation - information about the client's end-point, and any Session or Principal associated with the client.signatureRequest - a pre-approved signature request.
S3ServiceException
public String signHead(GatekeeperMessage requestMessage,
ClientInformation clientInformation,
SignatureRequest signatureRequest)
throws S3ServiceException
UrlSigner
signHead in class UrlSignerrequestMessage - the request message received from the client.clientInformation - information about the client's end-point, and any Session or Principal associated with the client.signatureRequest - a pre-approved signature request.
S3ServiceException
public String signPut(GatekeeperMessage requestMessage,
ClientInformation clientInformation,
SignatureRequest signatureRequest)
throws S3ServiceException
UrlSigner
signPut in class UrlSignerrequestMessage - the request message received from the client.clientInformation - information about the client's end-point, and any Session or Principal associated with the client.signatureRequest - a pre-approved signature request.
S3ServiceException
public String signGetAcl(GatekeeperMessage requestMessage,
ClientInformation clientInformation,
SignatureRequest signatureRequest)
throws S3ServiceException
UrlSigner
signGetAcl in class UrlSignerrequestMessage - the request message received from the client.clientInformation - information about the client's end-point, and any Session or Principal associated with the client.signatureRequest - a pre-approved signature request.
S3ServiceException
public String signPutAcl(GatekeeperMessage requestMessage,
ClientInformation clientInformation,
SignatureRequest signatureRequest)
throws S3ServiceException
UrlSigner
signPutAcl in class UrlSignerrequestMessage - the request message received from the client.clientInformation - information about the client's end-point, and any Session or Principal associated with the client.signatureRequest - a pre-approved signature request.
S3ServiceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||