|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jets3t.servlets.gatekeeper.Authorizer
public abstract class Authorizer
Authorizes or refuses operations on an S3 account - the decision can be based on information in the request message, details about the client, or the signature request itself.
An example Authorizer implementation might check that a user has alread been authorized and their Principal details are available from the client information, or it might check that the correct password has been provided in an application property in the request message.
Constructor Summary | |
---|---|
Authorizer(javax.servlet.ServletConfig servletConfig)
Constructs an Authorizer. |
Method Summary | |
---|---|
abstract boolean |
allowBucketListingRequest(GatekeeperMessage requestMessage,
ClientInformation clientInformation)
Authorizes a bucket listing operation for a client as represented by a the gatekeeper request message. |
abstract boolean |
allowSignatureRequest(GatekeeperMessage requestMessage,
ClientInformation clientInformation,
SignatureRequest signatureRequest)
Authorizes an operation represented by a signature request by returning true, or disallows the operation by returned false (and optionally setting a decline reason in the signature request). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Authorizer(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
servletConfig
-
javax.servlet.ServletException
Method Detail |
---|
public abstract boolean allowSignatureRequest(GatekeeperMessage requestMessage, ClientInformation clientInformation, SignatureRequest signatureRequest)
Authorization decisions can be made based on any of the inputs provided to this method.
requestMessage
- the Gatekeeper request message.clientInformation
- information about the client end-point this request was received from.signatureRequest
- a signature request to allow or disallow.
public abstract boolean allowBucketListingRequest(GatekeeperMessage requestMessage, ClientInformation clientInformation)
Authorization decisions can be made based on any of the inputs provided to this method.
requestMessage
- the Gatekeeper request message.clientInformation
- information about the client end-point this request was received from.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |