RenameToUuidUrlSignerpublic class DefaultUrlSigner extends UrlSigner
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
| Modifier and Type | Field | Description |
|---|---|---|
static String |
TRANSACTION_ID_METADATA_NAME |
| Constructor | Description |
|---|---|
DefaultUrlSigner(javax.servlet.ServletConfig servletConfig) |
Constructs the UrlSigner with the required parameters.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
public static final String TRANSACTION_ID_METADATA_NAME
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.ServletExceptionpublic String signDelete(GatekeeperMessage requestMessage, ClientInformation clientInformation, SignatureRequest signatureRequest) throws S3ServiceException
UrlSignersignDelete 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.S3ServiceExceptionpublic String signGet(GatekeeperMessage requestMessage, ClientInformation clientInformation, SignatureRequest signatureRequest) throws S3ServiceException
UrlSignersignGet 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.S3ServiceExceptionpublic String signHead(GatekeeperMessage requestMessage, ClientInformation clientInformation, SignatureRequest signatureRequest) throws S3ServiceException
UrlSignersignHead 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.S3ServiceExceptionpublic String signPut(GatekeeperMessage requestMessage, ClientInformation clientInformation, SignatureRequest signatureRequest) throws S3ServiceException
UrlSignersignPut 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.S3ServiceExceptionpublic String signGetAcl(GatekeeperMessage requestMessage, ClientInformation clientInformation, SignatureRequest signatureRequest) throws S3ServiceException
UrlSignersignGetAcl 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.S3ServiceExceptionpublic String signPutAcl(GatekeeperMessage requestMessage, ClientInformation clientInformation, SignatureRequest signatureRequest) throws S3ServiceException
UrlSignersignPutAcl 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