Package digilib.auth

Interface AuthzOps

    • Method Detail

      • isAuthorizationRequired

        boolean isAuthorizationRequired​(DigilibRequest request)
                                 throws AuthOpException
        Test if the request must be authorized to access the filepath. Information about the user is taken from the DigilibRequest.
        Parameters:
        request - DigilibRequest with user information.
        Returns:
        true if the user request must be authorized.
        Throws:
        AuthOpException - Exception thrown on error.
      • isAuthorized

        boolean isAuthorized​(DigilibRequest request)
                      throws AuthOpException
        Test if the request is authorized to access filepath.
        Parameters:
        request - Request with user information.
        Returns:
        true if the request is allowed.
        Throws:
        AuthOpException - Exception thrown on error.