org.jets3t.servlets.gatekeeper.impl
Class DefaultAuthorizer

java.lang.Object
  extended by org.jets3t.servlets.gatekeeper.Authorizer
      extended by org.jets3t.servlets.gatekeeper.impl.DefaultAuthorizer

public class DefaultAuthorizer
extends Authorizer

Default Authorizer implementation that allows all signature requests.

Author:
James Murty

Constructor Summary
DefaultAuthorizer(javax.servlet.ServletConfig servletConfig)
          Constructs the Authorizer - no configuration parameters are required.
 
Method Summary
 boolean allowBucketListingRequest(GatekeeperMessage requestMessage, ClientInformation clientInformation)
          Returns true in all cases.
 boolean allowSignatureRequest(GatekeeperMessage requestMessage, ClientInformation clientInformation, SignatureRequest signatureRequest)
          Returns true in all cases.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

allowSignatureRequest

public boolean allowSignatureRequest(GatekeeperMessage requestMessage,
                                     ClientInformation clientInformation,
                                     SignatureRequest signatureRequest)
Returns true in all cases.

Specified by:
allowSignatureRequest in class Authorizer
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 class Authorizer
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.