Is it possible to let the SecurityManager ask the user for permissions?

Hi there!
I would like to write an applet which should realize single-sigon via JAAS and for jaas I need some access to the underlaying os which is permitted by the security manager.
I dont want to buy a certificate or to go through all our (700) Computers and install my self-made certificates and change the policy file.
So is there a way to let java ask the user if it trusts the applet (may with remeber this desision) to e.g. let it access features needed for jaas.
This way can be direct (via api call) or not (applet signed via free long valid (at least 5 years) certificate), however the only important thing is that I get access to the system.
Any ideas, I would be happy about (nearly g) everything ;-)
Thanks a lot, lg Clemens

However thanks a lot for help g
Found the answer myself: Simply sign the applet with an self-made certificate, the next time the browser is restartet there will be a promt for acceptimg the certificate.
Cool!

Similar Messages

  • Cl_gui_frontend_services: possible to change the user for writing files?

    Hi,
    I'm using the class cl_gui_frontend_services to allow the user to copy a file to a specified network drive (using the method file_copy). The user can open the file again, if he double clicks on a row in a ALV table. So far so good, this works already.
    But one requirement for this solution is, that the user can not access the directory where the copied files are stored directly.
    Now I'm wondering if it is possible to use a specified system user for copying the files? My idea is to switch to the system user just for the method file_copy. I didn't find a method for doing this yet but maybe somebody knows if this is possible.
    Thanks and regards,
    Martin

    Hi ,
    Regarding to your last question; You can get the file list of a specified directory while using OPEN DATASET related commands. After the list populated you make the user select it with the help of a popup screen.
    Gets the list of a specified directory's content
      CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
        EXPORTING
          dir_name               = gv_drctry
        TABLES
          dir_list               = lt_dirlist
        EXCEPTIONS
          invalid_eps_subdir     = 1
          sapgparam_failed       = 2
          build_directory_failed = 3
          no_authorization       = 4
          read_directory_failed  = 5
          too_many_read_errors   = 6
          empty_directory_list   = 7
          OTHERS                 = 8.
    Hope it's useful...

  • Letting the user choose the amount of questions to a random quiz

    is it possible to Letting the user choose the amount of questions to a random quiz taken from a question pool?

    Hi Paul,
    you could check the source code of the http://osmf.org/dev/1.5gm/youtube-googleanalytics.html page. The js script code creates the embed code on page load.
    After the object is created, I obtain a generated embed code similar to:
    <object id="StrobeMediaPlayback" width="640" height="480" type="application/x-shockwave-flash" name="StrobeMediaPlayback" data="StrobeMediaPlayback.swf" style="visibility: visible;">
    <param name="allowFullScreen" value="true">
    <param name="flashvars" value="src=http://movie/.....&plugin_ga=GTrackPlugin.swf&ga_http://www.realeyes.com/osmf/plugins/trac king/google=%3Cvalue%20key%3D%22reTrackConfig%22%20type%3D%22class%22%20class%3D%22com.rea leyes.osmf.plugins.tracking.google.config.RETrackConfig%22%3E%09%09%20%20%20%20%20%20%20%2 0%3Caccount%3EUA-7184501-2%3C/account%3E%09%09%20%2...l%3D%22start%22%20/%3E%09%09%20%20%2 0%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmarker%20time%3D%2220%22%20label%3D%22start%22% 20/%3E%09%09%20%20%20%20%20%20%20%20%3C/event%3E%09%09%20%20%20%20%20%20%20%20%3Cdebug%3Et rue%3C/debug%3E%09%09%20%20%20%20%20%20%20%20%3CupdateInterval%3E250%3C/updateInterval%3E% 09%09%09%3C/value%3E&src_namespace_realeyes=http://www.realeyes.com/osmf/plugins/tracking/ google&src_realeyes_pageURL=page%20description&javascriptCallbackFunction=onJavaScriptBrid geCreated">
    </object>
    You will have to urlencode the XML data in order to use the plugin, I think this is where you are stuck.
    Does this help create your own code?
    P.S. regarding the contents of the XML string, you will have to personalize it for you own purposes.

  • How to get data from the user for an Insert Trigger ?

    Hi all and thanks in advance, I need to get some values from the user for a child table when a row inserted into the parent table, is that possible to use ampersand inside an "Insert Trigger" to let the user for inserting some values ?
    Edited by: user9942078 on 17-Dec-2008 16:35

    In a different words,
    When a virus attacked your body your blood cells instantly goes into operation. Just like that -> your trigger activated as a result of your DB operation on objects. So, here also you have no option to manually intervene anything.
    Hmm... Looks like some science fiction movies ultimately pays some price... ;)
    So, trigger basically fires implicitly as a result of any database operation on objects or even on user.
    So, that has to be automatic. And, when you are using & it will ask for some input value - which cannot be done in case of triggers.
    For details please refer the oracle docs.
    Regards.
    Satyaki De.

  • Whats better for my mbp 2013 retina in the long run? Keep it plugged in as much as possible or letting the battery hit 10% and then recharge it?

    Whats better for my mbp 2013 retina in the long run? Keep it plugged in as much as possible or letting the battery hit 10% and then recharge it?

    Odd you ask that, since both are HORRIBLE,   ... especially often draining your battery low.
    General consideration of your MacBook battery
    Contrary to popular myths about notebook batteries, there is protection circuitry in your Macbook and therefore you cannot ‘overcharge’ your notebook when plugged in and already fully charged.
    However if you do not plan on using your notebook for several hours, turn it off (plugged in or otherwise), since you do not want your Macbook ‘both always plugged in and in sleep mode’.
    A lot of battery experts call the use of Lithium-Ion cells the "80% Rule", meaning use 80% of the full charge or so, then recharge them for longer overall life. The only quantified damage done in the use of Lithium Ion batteries are instances where the internal notebook battery is “often drained very low”, this is bad general use of your notebook battery.
    A person who has, for example, 300 charge cycles on their battery and is recharging at say 40% remaining of a 100% charge has a better battery condition state than, say, another person who has 300 charge cycles on their battery and is recharging at say 10-15% remaining on a 100% charge. DoD (depth of discharge) is much more important on the wear and tear on your Macbook’s battery than the count of charge cycles. There is no set “mile” or wear from a charge cycle in specific. Frequent high depth of discharge rates (draining the battery very low) on a Lithium battery will hasten the lowering of maximum battery capacity.
    All batteries in any device are a consumable meant to be replaced eventually after much time, even under perfect use conditions.
    If the massive amount of data that exists on lithium batteries were to be condensed into a simplex, helpful, and memorable bit of information it would be:
    1. While realistically a bit impractical during normal everyday use, a lithium battery's longevity and its chemistry's health is most happy swinging back and forth between 20% and 85% charge roughly.
    2. Do not purposefully drain your battery very low (10% and less), and do not keep them charged often or always high (100%).
    3. Lithium batteries do not like the following:
    A: Deep discharges, as meaning roughly 10% or less on a frequent basis.
    B: Rapid discharges as referring to energy intensive gaming on battery on a frequent basis (in which case while gaming, if possible, do same on power rather than battery). This is a minor consideration.
    C: Constant inflation, as meaning always or most often on charge, and certainly not both in sleep mode and on charge always or often.
    From Apple on batteries:
    http://www.apple.com/batteries/notebooks.html
    http://support.apple.com/kb/HT1446
    "Apple does not recommend leaving your portable plugged in all the time."
    Keep it plugged in when near a socket so you keep the charging cycles down on your LiPo (lithium polymer) cells / battery, but not plugged in all the time. When not being used for several hours, turn it off.
    DoD (depth of discharge) is far more important on the wear and tear on your Macbook battery than any mere charge cycle count.  *There is no set “mile” or wear from a charge cycle in general OR in specific.    As such, contrary to popular conception, counting cycles is not conclusive whatsoever, rather the amount of deep DoD on an averaged scale of its use and charging conditions.
                              (as a very rough analogy would be 20,000 hard miles put on a car vs. 80,000 good miles being something similar)
    *Contrary to some myths out there, there is protection circuitry in your Macbook and therefore you cannot overcharge it when plugged in and already fully charged
    *However if you don’t plan on using it for a few hours, turn it OFF (plugged in or otherwise) ..*You don’t want your Macbook both always plugged in AND in sleep mode       (When portable devices are charging and in the on or sleep position, the current that is drawn through the device is called the parasitic load and will alter the dynamics of charge cycle. Battery manufacturers advise against parasitic loading because it induces mini-cycles.)
    Keeping batteries connected to a charger ensures that periodic "top-ups" do very minor but continuous damage to individual cells, hence Apples recommendation above:   “Apple does not recommend leaving your portable plugged in all the time”, …this is because “Li-ion degrades fastest at high state-of-charge”.
                        This is also the same reason new Apple notebooks are packaged with 50% charges and not 100%.
    Contrary to what some might say, Lithium batteries have an "ideal" break in period. First ten cycles or so, don't discharge down past 40% of the battery's capacity. Same way you don’t take a new car out and speed and rev the engine hard first 100 or so miles.
    Proper treatment is still important. Just because LiPo batteries don’t need conditioning in general, does NOT mean they dont have an ideal use / recharge environment. Anything can be abused even if it doesn’t need conditioning.
    Storing your MacBook
    If you are going to store your MacBook away for an extended period of time, keep it in a cool location (room temperature roughly 22° C or about 72° F). Make certain you have at least a 50% charge on the internal battery of your Macbook if you plan on storing it away for a few months; recharge your battery to 50% or so every six months roughly if being stored away. If you live in a humid environment, keep your Macbook stored in its zippered case to prevent infiltration of humidity on the internals of your Macbook which could lead to corrosion.
    Considerations:
    Your battery is subject to chemical aging even if not in use. A Lithium battery is aging as soon as its made, regardless.
    In a perfect (although impractical) situation, your lithium battery is best idealized swinging back and forth between 20 and 85% SOC (state of charge) roughly.
    Further still how you discharge the battery is far more important than how it is either charged or stored short term, and more important long term that cycle counts.
    Ultimately counting charge cycles is of little importance.  Abuse in discharging (foremost), charging, and storing the battery and how it affects battery chemistry is important and not the ‘odometer’ reading, or cycle counts on the battery. 
    Everything boils down to battery chemistry long term, and not an arbitrary number, or cycle count.
    Keep your macbook plugged in when near a socket since in the near end of long-term life, this is beneficial to the battery.
    In a lithium battery, deep discharges alter the chemistry of the anode to take up lithium ions and slowly damages the batteries capacity for the cathode to transport lithium ions to the anode when charging, thereby reducing max charge levels in mAh. In short, radical swings of power to lithium cells disrupts the chemical ecosystem of the battery to hold charges correctly which likewise impedes the perfect transfer of lithium ions both in charging and discharging.  In charging your lithium battery, lithium ions are “pushed uphill” (hard) to the anode, and discharged “downhill” (easy) to the cathode when on battery power. Deep discharges, damages this “upward” electrolyte chemistry for the battery to maintain a healthy charge and discharge balance relative to its age and cycles.
    Optimally, in terms of a healthy lithium battery and its condition, it is most happy at 50% between extremes, which is why low-power-drain processors such as the Haswell are ideal on lithium battery health since a partially charged battery with a low-drain processor has, in general, much more usage in hours
    Battery calibration, battery memory, battery overcharging, battery training, …all these concepts are mostly holdovers from much older battery technology, and on older Apple portable Macbooks ranging from early nicads, NiMh and otherwise; and these practices do not apply to your lithium battery and its smart controllers.
    Calibrating the battery on older Apple portable Macbooks with removable batteries.
    http://support.apple.com/kb/PH14087
    There is no calibration of current Apple portable Macbooks with built-in batteries.
    http://support.apple.com/kb/ht1490
    There is no battery calibration with current Apple portable Macbooks with built-in batteries. Lithium batteries have essentially a 0-‘memory’, and all such calibration involve the estimations fed to the system controller on the SOC (state of charge) of the battery over long periods of time as the battery degrades. The software based battery controller knows the battery's characteristics, or SOC and adjusts itself. This is why there is both no need and purpose to periodically deeply drain your macbook battery, since it doesn’t affect the characteristics of the battery, and further still deep discharges are something you should not do on purpose to any lithium battery.
    From BASF: How Lithium Batteries work
    https://www.youtube.com/watch?v=2PjyJhe7Q1g
    Peace

  • Is it possible to let the TS-HD go sleep when not in use

    is it possible to let the Time Capsule HD go idle when not in use for saving energy?

    If the Time Capsule is functioning normally, the hard drive will spin up automatically when a Time Machine backup begins and spin down after the backup is completed.
    My Time Capsule normally runs for a minute or two for the backup each hour....otherwise the drive is not active.

  • Is it possible to let the installer write vpd.properties to somewhere else?

    Hi Experts,
    I want to check whether it is possible to let the installer write vpd.properties etc files into a local directory, but not always into /var/adm/siebel. Is there a way to do that?
    Thanks!

    Just curious. Why would you want to do this?
    <br>
    <br>
    Chung
    <br>
    <br>
    Application Management Blog

  • Is that possible to display the user selection data in the printable page?

    Hi All,
    I'm going to add a printablepage button on my page.
    Here comes a questions.
    Is that possible to display the user selection data in the printable page?
    For example,
    I have a table in the page,with 10 records.User select 5 of them.Can I display these 5 records in the printable page?
    Please help.

    Hi Yannick,
    Thanks a lot for the information. It worked.
    The portlet data can be accessible using bindings, but parameter name can be different.
    Meanwhile I have got one more scenario, where the Portlet and Task Flow placed in different pages of WCP Application. On change of data in the Portlet the application should navigate to another page where the Task Flow placed and displays selected data.
    Basically I can not use any button for navigation. The navigation should happen once I do some action in Portlet.
    Is this possible? If yes can you please let me know the steps?
    Thanks in advance!
    Somnath
    Edited by: Somnath Basak on Dec 20, 2011 9:41 AM

  • Is it possible to allow the user to highlight specific label in the GUI.

    i have an existing GUI tt allows user to key in records of information eg, patient records in a hospital system.
    and display them based on wat the user key in for the patient's id no:
    is it possible to allow the user to highlight label in the GUI.
    Label as in information like Illness:<Red>Cancer<Red>
    for tt customer only.
    and re open the file to have the color still there.
    i serialized my vector of objects into a file, and have the gui to retrieve them upon execution.
    color wise i m lost.
    one solution is to have a corresponding Color attribute to each of my other attribute in all my other classes.
    besides this, any idea how to do it?
    i also did a search on java map..
    couldn't really find sth useful abt it..
    seems like few ppl know how to use it well..
    API doesn't seems to show how i can use it to reach my objective.
    anyway, i hope the user can highlight A attribute of a record and not highlight the entire record..
    tt's why i find it soo cumbersome to have another Color object created for each atttribute.
    eg:
    patientId, patientName, etc.....
    thanks in advance

    Several Swing components understand HTML tags, eg JLabel, which is VERY useful, as in the previous example.
    Are you asking "how do I highlight a field" or "how do I make it remember the color it has"?
    As Color is itself Serializable, why not store your data in a Hashtable not a Vector?

  • Is it possible to change the read/write permissions on a time machine back-up of iTunes? I need to restore it, but old version is locked....

    Is it possible to change the read/write permissions on a time machine back-up of iTunes? I'm needing to restore it as my phone deleted half our playlists during sync  & am not seeing a way to unlock the permissions. I have the current version unlocked, but can't seem to get the backed-up version. When I click on restore I get a pop-up that says iTunes can't be deleted as it is part of the OS. I'm not even trying to delete, just restore the old version. Any suggestions?

    Hmmm, ok I'll give it a shot. I've always had the iTunes sync w/ my phone set up to only load selected playlists to the phone b/c there's a lot more in iTunes than I have room or desire for on my phone. A few months back I started having trouble w/ trying to sync everything & subsequently adding more to the phone than it could hold. The quickest thing at the time was to unclick the sync music option in iTunes so I could still backup the phone to the computer & not have a problem.
    When I asked about it during one-to-one session shortly after, they advised me to delete the music off my phone & then re-sync it to the computer, run a backup of the phone & redownload the music to the phone. When I tried this it ended up deleting all my playlists (but not my husband's) from iTunes. Irritating, but I've been rebuilding the playlists since. I had also unclicked sync music again & an Apple person told me the most likely best fix was to delete & reload iTunes completely.
    A few days ago I realized I hadn't backed up the phone to the computer in over a month so after deleting & reinstalling iTunes, & w/o changing anything (sync music was STILL unchecked) I ran a backup & my phone went from having 4 GB free space to being 2 GB over capacity due to iTunes trying to download the entire music library to the phone. I made a one-to-one appt again & it was suggested AGAIN that I delete all the music off my phone & then resync it to the computer & redownload the music. We did this (though a few random songs that had previously been purchased somehow remained on the phone), I got home, connected the phone & instead of the music that shows  as 'on my device' disappearing from iTunes it just sat there, so, as the guy had told me I MIGHT have to do, I threw all those songs showing in iTunes as being on my phone, in the trash so that it was completely clear.
    At this point I checked sync music, made sure the options were 'selected playlists only', checked the ones from my own list that I wanted (I usually have one playlist of comedians from my husband's folder that I also have on the phone, but didn't check it at this point). It uploaded all my stuff just fine, but for whatever reason when it saw that I wasn't uploading that comedy playlist any longer, it not only didn't upload it but proceeded to delete my husband's entire folder of playlists from iTunes. -_- I got on the phone w/ an Apple support person right away but he wasn't able to tell me anything .. basically said we'll have to rebuild everything. I asked about the possibility of using time machine, he said he's not qualified to answer that, so that's when I started looking around online & found, among others, the link I referenced a couple replies ago.
    I hope this all makes sense. It's been a long-term issue so I'm trying to go from memory as I figured to begin w/ that I had just made a mistake somewhere, so didn't try to document anything. Now w/ it having happened a 2nd time, I'm not sure if it was 'user error' or something else.......

  • The Wifi storage options are interesting but it seems they only allow to read files from the device on the iPad but not transfer files to the storage device via WiFi.   I'm looking for a possibility to use the iPad for photography while traveling, without

    the Wifi storage options are interesting but it seems they only allow to read files from the device on the iPad but not transfer files to the storage device via WiFi.
    I'm looking for a possibility to use the iPad for photography while traveling, without the access to a computer.
    Shooting photo's in RAW format crates pretty big files that will fill up the iPad's memory pretty fast if you shoot a lot during a (let's say) month long trip.
    my idea was to use load the photo's to the iPad so i could view them and sort out any bad ones. then copy them over to the storage device so i can continue using my CF cards for shooting. I have an image thank for copying the photo's directly to the HDD but it would be so sweet to be able to check them on the iPad before hand.
    any suggestions?

    Check out pogo plug device, it allows you to upload camera roll via wifi.

  • How to let the user define the colors for each plots in the graph (I use LabVIEW 7)?

    How to let the user define the colors for each plots in the graph (I
    use LabVIEW 7)?

    Hi,
    Take a look at this example, it uses property nodes to select tha
    active plot and then changes the color of that plot.
    If you want to make the number of plots dynamic you could use a for
    loop and an array of color boxes.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.
    Attachments:
    Changing_plot_color.vi ‏38 KB

  • Is it possible to change the user status of a TECO Order

    Hello Folks
    Is it possible to changes the user status of a TECO Order?
    I have tried to change it using the FM 'STATUS_CHANGE_EXTERN'. Its working fine for NON TECO Orders but not for TECO Orders.
    On the other hand I was able to manually change the user status for a TECO Order in transaction IW32.
    I need to change the user status from NFBK to FBK.
    Please provide some inputs for the same.
    Thanks n Regards
    Ramesh

    The simple way is via the Internationalization settings via ARD or RDP or Screen Sharing, either via System Preferences or (if enabled) via the menu bar. If you're looking for a lower-level approach, there's not AFAIK a direct command for this. As for one possible approach, might [threadID=2106201|http://discussions.apple.com/thread.jspa?threadID=2106201] help?

  • Is it possible to restrict the user from creating a sibling and allow him to ONLY create child nodes in DRM?

    When in a hierarchy, a user right clicks on a node to crate a new node, he has two options
    -Child
    -Sibling
    Is it possible to restrict the user from creating a sibling and allow him to ONLY create child nodes?
    Business cases:
    1. different level nodes need to have different prefixes.
    - Thus, the default prefix property definition uses the level number to assign a prefix
    - Also, a validation, to ensure the correct prefix, uses the level number
    But if the user can create a child and a sibling then the default prefix will only be right for a single case and not both.
    Thanks

    If the images are exactly the same size then make sure the layer with the mask
    is the active layer and in the other documents go to Select>Load Selection and choose
    your document with the layer mask under Source document and under channel choose the layer mask.
    After the selection loads press the layer mask icon at the bottom of the layers panel.
    MTSTUNER

  • A suggestion for the mouse setting through persistence via SkyDrive/OneDrive: Add a check button to let the user tell if the mouse settings should be "restored" every time the user logs in a "different" computer using the same Microsoft Account.

    Every time I log in one of my 2 computers with Microsoft Account, I have to change the main button (left/right) setting, because the settings persistence via SkyDrive/OneDrive.
    I have different main mouse button settings in the computers.
    Those settings shouldn't be changed, if the account is not a new one, after all, if the user has different settings in old accounts, it means there must be a reason to do it (because of hardware and/or furniture restriction).
    Thus, a check button in the mouse settings' window that let the user tell if it should be changed or not would be welcomed.

    Every time I log in one of my 2 computers with Microsoft Account, I have to change the main button (left/right) setting, because the settings persistence via SkyDrive/OneDrive.
    I have different main mouse button settings in the computers.
    Those settings shouldn't be changed, if the account is not a new one, after all, if the user has different settings in old accounts, it means there must be a reason to do it (because of hardware and/or furniture restriction).
    Thus, a check button in the mouse settings' window that let the user tell if it should be changed or not would be welcomed.

Maybe you are looking for

  • Error in Adding New Users

    One client encounter a problem in one of there DB, where in they cannot add new User although they change the User Code many times but yet they get the same error. The error message is"This entry already exists in the following tables" (CUMI) (ODBC-2

  • How to clean uninstall firefox on mac OS X 10.10.1

    Attempt to uninstall Firefox on my iMac has left "mozilla.org" and "mozilla.net" in my cache. I've tried to remove it by clearing history and website data but it refuses to go away. How do I get rid of it and get back to where I was before trying to

  • How do I create a PDF file from multiple photos?

    I have multiple photos on my iPhone that I want to select and use to create a single PDF. How do I do this? Thanks, Tom

  • Temporary files are not getting deleted

    Hi All, I am using informix database and my code is reading BLOB from database and writing the image to different storage media. The program has to run for number of images. It is writing to media successfully but not exiting even after printing the

  • Any way to have Async Socket Comm and have a UI?

    I'm a bit of a newbie to Java, but I can't find a way to have async socket communication and also have an event driven ui. All the examples of non-blocking sockets use forms of infinite loops to check (poll) selectors or some such thing....but the ev