Class DefaultAuthorizer

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

public class DefaultAuthorizer extends Authorizer
Default Authorizer implementation that allows all signature requests.
Author:
James Murty
  • 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 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.