Class DefaultAuthorizer


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