Determine whether application is running in (the default) sandbox

I have searched the documentation and lists for the answer to this and have sofar found nothing. If it exists, I apologise and please point me to the relevant page(s).
I have an application which I want to be able to run in two modes, in sandbox (so as not to bother the user with those questions) and, if the user really does want to print/email/clipboard, to give permission. I do NOT control (or want to amend) some of the code which performs these operations, e.g. 3rd party report generator, Javamail, which would seem to exclude use of jnlp runtime API.
1. Is the jnlp API the only way to get JWS to ask the user for permission at runtime? Or is there another combination of <all-permissions>, signing, security properties which I have control over form the jnlp file, which I can use?
2. Anyway there would appear to be no API in jnlp for getting permission to access a socket that the mail (Javamail/Java Activition) requires. Is this correct?
3. Can I tell from the application whether it is sandboxed or not? Part of the problem is that the report generator hangs (its thread stops) when all-permissions has not been granted. If I could tell that the app is in a sandbox, I could inform the user to start the app (or maybe restart it automagically) from a different jnlp file which asks those questions.
Very grateful for any help to get the security of the app clean and presentable for average end users.
Thanks
Charles Whittington

Thanks. And I think I now understand all the issues. But none of it really helps.
Remember I have some jars over which I have no control - and I don't actually know which services they are going to require. For example, the Report Generator fails with some reports but not others and I assume (but I don't know) that this is because it is trying to open a temporary file.
I feel it would be better is the whole question of operating outside the sandbox was addressed by asking the user only when the application tries to do an "unsafe" operation. This way we can do away with the ridiculous proposition that a user is qualified to examine a "verifyable" or "unverifyable" certificate in anticipation of an event of which he has no prior knowledge, Or indeed, asking the developer to code certain operations differently because the app will be running in a sandbox. In fact, I see no function in the JNLP API to ask the user if one can open a remote socket - so one is forced back to the signed certificates and "those questions".
So why not recast the security model so the user is asked specifically about dodgy operations - along with the opportunity to allow similar operations again without asking. This would seem to me to make alot more sense.
Just my 0.02GBP
Charles Whittington

Similar Messages

  • I installed iWork11 but the '09 versions of the software are still running--and the default. What do I need to do to get the '11 versions working?

    I installed iWork11 but the '09 versions of the software are still running--and the default. What do I need to do to get the '11 versions working?

    It's very simple. If you want to use iPhoto, just let it manage things as it does. Other than that: Export from iPhoto and delete the image from iPhoto. That will remove the master and all versions.
    If space is an issue... use an external disk.
    Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things, deleting them or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    Regards
    TD

  • Put my macbook pro to sleep. When I opened it, the desktop window is small and I can't resize it. All applications now run in the smaller size window.  Can't make it fill the screen. Just switched from windows.  Thank you.

    Put my macbook pro to sleep. When I opened it, the desktop window is small and I can't resize it. All applications now run in the smaller size window.  Can't make it fill the screen. Just switched from windows.  Thank you.

    Check to see if the resolution has been changed in System Preferences.
    Allan

  • Securing applications communications running in the same server

    Hi everybody,
    I want to share critical information between two applications (medical information about patients) using JMS queues, moreover due to this criticity i was planning to secure this communication using SSL. The problem is that one of the client applications, because of his architecture, have problems when accessing the JMS queues.
    But I have to say that both applications will run in the same server (physical machine), knowing that, what kind of security problems could we encounter if, finnally we don't cypher the communication?
    I guess that the danger is lower than if the two applications would run in different machines, wouldn't it?
    Thanks!!!

    hi,
    add crossContext="true" in server.xml under tomcatx.x\conf\ in your <Context tag

  • How do i see what applications are running in the background

    My iMac is running very slow my operating system is OS X Yosemite Version 10.10.2 with a 2.5 GHz Intel Core i5 Processor. How do I see what applications are running in the background?

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstalling OS X Without Erasing the Drive
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Alternatively, see:
    Reinstall OS X Without Erasing the Drive
    Choose the version you have installed now:
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • Please make a permanent solution to stop applications from running in the background

    'multitasking' is not a very usefull invention and should have a permanent solution, to stop applications from running in the background instead of having to go in and exit them. the only thing that is usefull is to go in and click on next song under music, everything else running in the background can just be exited as far as im concerned, its not like i have 400 applications, and i have to go searching through my phone to find them

    Push twice on the Home button to display running apps. Press on one and hold until they wiggle. Tap on the circled red "x" to remove each from the background. Note that backgrounded apps are not actually running until you access them except for those that have been written to run concurrently such as Music, which can continue playing while you are using other apps.

  • When changing the default printer in windows vista why doesn't the default printer change in firefox (firefox was running when the default printer was changed)?

    I am not sure whether or not this is a bug or a feature, but I was running firefox on my laptop. I then went to add a new printer and set it as a default printer. When I went back to firefox to print, it did not automatically choose that new default printer as the printer of choice. I then had to choose the new printer manually to print to. This is merely a convenience issue but thought I would bring it to the attention of Mozilla in case.

    Hello bradleesargent
    as i can see the note in the kb article ([https://support.mozilla.org/en-US/kb/how-print-websites#w_print-window-settings Print window settings]) ''The default printer is the Windows one. When a web page is printed with the selected printer, it becomes the new default printer.''
    do you have your previous printer also, or you uninstall the previous printer and then install the new one and make it default ?
    I think firefox must be closed when you set up a new printer. Do you have it open when set up the new printer ?
    thank you

  • How do I find out what applications are running in the background

    I have a 2008 iMac with 2GB memory.  How do I find out what programs are running in the background?  I am going to buy a new iMac before the end of the year to replace this one.  When I looked at Activity Monitor it shows 1.8Gb used but doesn't tell all the programs running.

    open activity monitor [if it doesnt launch click winders>Activity Monitor]. then it'll show all proceses

  • Looking for a DnD example that runs in the JNLP sandbox

    Can somebody point be to good short example code that illustrates drag-and-drop into an application that is running in the sandbox.
    The example must work with javaFileListFlavor, i.e., I'd like to drag-and-drop files into the application.

    I was aware of the tutorial. It does not answer my question. None of the examples show DnD of files. I am wondering if it would be possible, since it may violate the security policy of the sandbox. Dnd of the file contents only would be good enough for my purposes, but even that seems to be impossible.

  • What's the best way to know whether an application is running for the first time? (C#)

    I seen suggestions like making a registry entry, or making an entry in the application specific settings file. But what's the best practice? I want to do some custom tasks if that is a first run.
    Also, I am deploying my application using per machine MSI installer. So un-installation not deleting the user specific config files that's get created under AppData.
    Thanks Prasad

    Hello,
    Whenever possible I prefer to avoid the registry. The following works once per user where we see if a specific folder exists or not, if it does not then do first time initialization work then set a setting in the project which causes a user config file to
    be written to the location for storing user settings per user. 
    You first need to create a setting in the project, in this case I did
    var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);
    string configPath = config.FilePath.Replace("\\user.config", "");
    if (System.IO.Directory.Exists(configPath) )
    Console.WriteLine("This is not the first time");
    else
    // Do one time setup here
    Properties.Settings.Default.FirstTimeValue = "1";
    Properties.Settings.Default.Save();
    Console.WriteLine("This was the first time");
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • SSO not working for a custom WDA application that runs in the Portal

    I have a Portal system (Java stack, NW04s) that has an iView of type webDynpro ABAP. The custom Web Dynpro ABAP application resides on another system (ABAP stack, running ECC6). We have configured the trust relationship between the Portal and the ECC system as per
    http://help.sap.com/saphelp_nw04s/helpdata/en/61/42897de269cf44b35f9395978cc9cb/content.htm
    We know this is working since we are able to run ESS. However, for the custom WebDynpro ABAP application, when calling it for the first time, a logon screen shows up. How can we get rid of it? what are we missing to have SSO work for the custom WebDynpro application?

    Please check this link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d35bb690-0201-0010-988a-d669c8530518
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2fhelp%2fsdn_help_nw04s%2fsaphelp_nw04s%2fhelpdata%2fen%2f5e%2f6c85c3edf942f39349a1e337434d29%2fcontent.htm
    Hope it helps.
    Regards,
    Mona

  • After run f110 the default file directory

    hi epxert,
    i want to known the defalut profile or the file directory after run the payment f110
    Thanks in advance.

    Hi There,
    You need to provide some more details about your query. The output of the payment run gets generated based on the payment method and payment media used. E.g.:-
    (1) If RFFOEDI1 assigned to payment method and IDOC generated, then the payment output gets stored in database table EDID4. and IDOC goes to UNIX based on the path defined in the port (WE21) assigned to partner profile (WE20) assigned to house bank (FI12)
    (2) If DME file is get generated, then the path is determined based on the path defined in the variant of the DME program SAPFPAYM.
    (3) If it is bill of exchange, then the path gets determined based on the path given in FBWP.
    etc.....
    I hope that this will help you............
    Regards,
    Gaurav

  • Key press detection when application is running in the background

    Is it possible to detect any key presses when the application is in the background?

    The key-related, pointer-related, and paint() methods will only be called while the Canvas is actually visible on the output device. These methods will therefore only be called on this Canvas object only after a call to showNotify() and before a call to hideNotify(). After hideNotify() has been called, none of the key, pointer, and paint methods will be called until after a subsequent call to showNotify() has returned. A call to a run() method resulting from callSerially() may occur irrespective of calls to showNotify() and hideNotify().
    The showNotify() method is called prior to the Canvas actually being made visible on the display, and the hideNotify() method is called after the Canvas has been removed from the display. The visibility state of a Canvas (or any other Displayable object) may be queried through the use of the Displayable.isShown() method. The change in visibility state of a Canvas may be caused by the application management software moving MIDlets between foreground and background states, or by the system obscuring the Canvas with system screens. Thus, the calls to showNotify() and hideNotify() are not under the control of the MIDlet and may occur fairly frequently. Application developers are encouraged to perform expensive setup and teardown tasks outside the showNotify() and hideNotify() methods in order to make them as lightweight as possible.
    The above answer you might have found in the JAVADOC, if you would have gone through the description of the Canvas class.
    Don't forget your DUKES as I had to search the JAVADOC for giving you the exact answer, which you should have done that yourself only!!!
    Shan!!!

  • AppleScript code runs slower as an application than running from the editor

    I discovered today that AppleScrip runs much faster when I run the code from the run button in Applescript Editor 2.3 than when I save the source code as an application and then run the application. I really expected the opposite. I would prefer not having to open Applescript Editor 2.3 each time I run a program, but the time difference is significant (see below). What causes this? Am I doing something wrong? I save the source code by going to File -> Save As -> File format: Application. I then run the application.
    Examples (both programs manipulate data in lots of Excel spread sheet files):
    Program 1- run time is 5 min, 40 sec when selecting run in Applescript Editor 2.3, and 23m, 25s when running as an application.
    Program 2- run time is 7m, 12s when selecting run in Applescript Editor 2.3, and 12m, 54s when running as an application.

    I tried the code "Hiroto came up with as solution that was essentially 100% effective" provided in the link. My run time went from 5m 30s when run from source code to 5m 50s when run as an application (differences in seconds could easily be my crude method of measuring time). Previously, it took 23m 25s when run as an application. Thanks, this is the solution I was looking for.
    However, in searching this issue, I found similar code in a discussion topic titled "Applet speed -- Hiroto's solution followed by issues" posted Jul 27, 2008. That code would randomly end with "The variable o is not defined". I hope the new code solves this problem. The new code certainly worked great the first time I used it.

  • To know application that run in the pc

    Hi, in from M�xico,
    my question is know applicattion that run in my pc, exist some class special? or if somebody know a tutorial where say mention something?.
    Sorry my bad english.
    Thanks :D

    sorry Paul for late answering here....
    I went thro the link u sent, check files & directories thro Command Prompt & find isqlplus is existing. But the problem still exist.
    Is there any other port nos. which may be used for isqlplus ?
    I tried to find out from the link, but cant find any other except Port No. 80.
    Now????

Maybe you are looking for

  • CC-e: Etapa não está em ordem

    Olá pessoal, Estamos implementando a CC-e, e realizamos todas as configurações no ECC, e estamos no SP20 do GRC. No ECC a CC-e é criada normalmente e enviada ao GRC, porém a mesma fica no monitor GRC e não é enviada à SEFAZ... Quando checamos a aba d

  • Screen Sharing and MobileMe

    Hi There, I have a problem, I have a MobileMe account, as does my brother who is currently at university in the US, Im working out of an Apple Mac Pro that is going into a BeBox Speedtouch. Typically, when i'm at work i can connect via 'Back to My Ma

  • Can I get the Trash and Send folder in IMAP

    Hi, I work now for a mail aplication using IMAP. I connect to Microsoft Exchange Server and my question is if there is a posibility to find which folder is the TRASH and which one is the SEND folder. The idea is that I can not use the name because I

  • Is anyone else having frequent frozen editor problems?

    My editor freezes on me every day, at least once, and sometimes a lot more. Today it's happened 4 times. I never know when it's going to happen, but it seems to happen more often when I'm working on large files with a mix of cfscript, cftags and html

  • ORA-28509 when calling PL/SQL mq message throught Java Application

    I have a PL/SQL procedure called "prc_send_mq_message" witch works perfectly when I invoke throught database users where it is compiled. But when this same procedure is invoked by Java Application witch connects with the same user, the error: "ORA-28