Class DefaultAuthorizer
java.lang.Object
org.jets3t.servlets.gatekeeper.Authorizer
org.jets3t.servlets.gatekeeper.impl.DefaultAuthorizer
Default Authorizer implementation that allows all signature requests.
- Author:
- James Murty
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAuthorizer
(javax.servlet.ServletConfig servletConfig) Constructs the Authorizer - no configuration parameters are required. -
Method Summary
Modifier and TypeMethodDescriptionboolean
allowBucketListingRequest
(GatekeeperMessage requestMessage, ClientInformation clientInformation) Returns true in all cases.boolean
allowSignatureRequest
(GatekeeperMessage requestMessage, ClientInformation clientInformation, SignatureRequest signatureRequest) Returns true in all cases.
-
Constructor Details
-
DefaultAuthorizer
public DefaultAuthorizer(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException Constructs the Authorizer - no configuration parameters are required.- Parameters:
servletConfig
-- Throws:
javax.servlet.ServletException
-
-
Method Details
-
allowSignatureRequest
public boolean allowSignatureRequest(GatekeeperMessage requestMessage, ClientInformation clientInformation, SignatureRequest signatureRequest) Returns true in all cases.- Specified by:
allowSignatureRequest
in classAuthorizer
- Parameters:
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.- Returns:
- true if the request is allowed, false otherwise.
-
allowBucketListingRequest
public boolean allowBucketListingRequest(GatekeeperMessage requestMessage, ClientInformation clientInformation) Returns true in all cases.- Specified by:
allowBucketListingRequest
in classAuthorizer
- Parameters:
requestMessage
- the Gatekeeper request message.clientInformation
- information about the client end-point this request was received from.- Returns:
- true if the request is allowed, false otherwise.
-