Why there is AccessController.doProvileged()

I know AccessController.doProvileged() making magic that "+Marking code as "privileged" enables a piece of trusted code to temporarily enable access to more resources than are available directly to the code that called it+. " as described here: http://download.java.net/jdk8/docs/technotes/guides/security/doprivileged.html
However, what I don't understand is that why this introduced at all. if certain resource is secured, it should not be able to accessed at all unless caller get permission. what does "*temporarily enable access*" mean here? if the resource is enabled to be accessed through doProvileged(), there is nothing to prevent it from accessed permanently, right? programmer won't remove doProvileged() code when they deliver the code to make the resource unaccessable :)
in the example mentioned in above document:
"+This is necessary in some situations. For example, an application may not be allowed direct access to files that contain fonts, but the system utility to display a document must obtain those fonts, on behalf of the user. In order to do this, the system utility becomes privileged while obtaining the fonts+."
user is able to put doProvileged() code in his code to access system font just like the system utility does, the system font is not secured to user as well.
Could someone explain? thanks

Anybody here ? Thank you.

Similar Messages

  • Why there is no wifi network showing on my iphone 4s

    why there is no wifi network showing on my iphone 4s.

    i got this reply for mts yesturday...
    There is no set time when LTE will be available on the iphone 5 with MTS.  The LTE network works well with MTS but currently our agreement with Apple does not allow us to activate it for the iphone 5.  However we are working with Apple to get LTE access for the phone.  I apologize about any inconvenience this may have caused you.
    Technical Support

  • Hello I am just wondering why there is a message of error 1004 when i tryed to make the update on my apps. Does someone know what it means?

    Hello I am just wondering why there is a message of error 1004 when i tryed to make the update on my apps. Does someone know what it means?

    Yes, many know what this means.  You can too.  Just type in "error 1004" in the search box at the top of this page.  Or, just look to the right.  You'll find many links in the "More Like This" box. 
    Always good forum etiquette to search for previous posts on the topic before posting.

  • Why there are two init methods?

    I copied this code from netbeans for a JApplet.. and it has two init methods
    One is public void init() that calls another initComponents() method.
    And the initComponents() method has all the components defined in it, and it is private.
    I replaced private with public and changed initComponents to init, and then deleted all the init method, it worked that way.
    But why there two methods when you can put every thing in single init() method?
    The init() method has this code in it:
    public void init() {
            try {
                java.awt.EventQueue.invokeAndWait(new Runnable() {
                    public void run() {
                        initComponents();
            } catch (Exception ex) {
                ex.printStackTrace();
        }

    BDLH:
    WWJD? Probably code in Ruby, but I digress. No, he would define an abstract base for that boilerplate code:
    import java.awt.*;
    import java.lang.reflect.*;
    import javax.swing.*;
    public abstract class AbstractApplet extends JApplet {
         public void init() {
              try {
                   EventQueue.invokeAndWait(new Runnable() {
                        public void run() {
                             initComponents();
              } catch (InterruptedException ex) {
                   ex.printStackTrace();
              } catch (InvocationTargetException ex) {
                   ex.printStackTrace();
         protected abstract void initComponents();
         //ditto: start, stop, distroy
    }

  • Why there is no quick selection function in adobe photoshop 6.0.1 [was: cs6.01]?

    Some one my help? why there is no quick selection function in my adobe photoshop 6.0.1 [was: cs 6.01]?

    What John Waller just said.
    And your screen shows it is the archaic, totally superseded Photoshop 6.01, and that was in no way associated with any CS (Creative Suite), so your question title indicating you had "cs6.0.1" was massively and annoyingly misleading and wrong.
    You must be running an ancient machine if that oldie runs on it.
    What's worse you are running an illegal, pirated and hacked version of Photoshop.  You are breaking the law.
    Please don't come back here until you have bought a legal copy of Photoshop.  

  • Why there is no sound when i connect my ipod to my pc via bluetooth

    i dont know why there is no sound, even though it worked i believe before IOS 7

    Yes, a computer can connect to/use bluetoothe headpphnes.
    Just what do you mean by " blutoothing with my pc"?
    I do not know what blutoothing means.

  • Why there is a error in this query ?

    why there is a error in this query ?
    declare
    v_exist pls_integer;
    v_search varchar2(255) := '175';
    v_sql varchar2(255);
    begin
    for s in
    (select table_name, column_name
    from user_tab_columns
    where data_type like '%CHAR%'
    order by table_name, column_name)
    loop
    v_sql := 'select count(*) from '||s.table_name||
    ' where instr('||s.column_name||',' || CHR(39)|| v_search|| CHR(39) ||') > 0';
    execute immediate v_sql into v_exist;
    if v_exist > 0 then
    dbms_output.put_line(s.table_name||'.'||s.column_name||' matches the string.');
    end if;
    end loop;
    end;
    Error:
    The following error has occurred:
    ORA-00933: SQL command not properly ended
    ORA-06512: at line 14
    Edited by: user575089 on Dec 23, 2009 4:14 AM
    Edited by: user575089 on Dec 23, 2009 4:14 AM

    See, Right now i am in schema and see below :
    set serveroutput on;
    declare
    v_exist pls_integer;
    v_search varchar2(255) := 'SCOTT';
    v_sql varchar2(255);
    begin
    for s in
    (select '"'||table_name||'"' table_name,'"'||column_name||'"' column_name
    from user_tab_columns
    where data_type like '%CHAR%'
    and table_name not like '%$%'
    order by table_name, column_name)
    loop
    v_sql := 'select count(*) from '||s.table_name||' where instr('||s.column_name||',' || CHR(39)|| v_search|| CHR(39)||') > 0';
    --dbms_output.put_line(v_sql);
    --execute immediate v_sql;
    execute immediate v_sql into v_exist;
    if v_exist > 0 then
    dbms_output.put_line(s.table_name||'.'||s.column_name||' matches the string.');
    end if;
    end loop;
    end;
    "EMP"."ENAME" matches the string.
    "EXCEPTIONS"."OWNER" matches the string.
    "FLOW_TABLE"."OBJECT_OWNER" matches the string.
    "MYEMP"."ENAME" matches the string.
    PL/SQL procedure successfully completed.
    I am getting output; that i search "SCOTT" word in my search string.

  • Why there is no uttorent in app store.

    Why there is no utorrent in the app store?

    Might be because a torrent site would not meet the stringent requirements and because the app store is in business to sell apps vs. a torrent site which makes things available for free (even though they may cost money elsewhere).

  • Why there are no layout in number 3.0 ????????

    why there are no layout in number 3.0 ????????
    I need to export the number file to PDF file , I don't want all of the pages are together , I need to seperate the pages in PDF file , I need the PDF file with layout function , just like previous version .
    why are this useful function missing in new version ????????????????????????????????????????????????????????????

    All we know here is that the new version of Numbers is significantly different than the old version of Numbers. We didn't write the specifucation nor do we know what the objectives were for the redesign, other than Apple's stated desire to make the three platform versions of Numbers as compatible as possible across platforms. That's the best "why" we can give you.
    Thanks for using only one exclamation point in your last post.
    Jerry

  • Why there is no 1080P option of editing?

    Hello
    I want to know why there is no 1080P option of editing?
    There are only 720P option and 1080i option
    Thank you in advance

    As others have explained, Premiere Elements 8 (PE8) does not support 1080p out of the box.
    I created some custom presets to add 1080p (and other) editing modes to PE8.  These are 'experimental' (as in there is no guarantee it will work for you).  The 1080p25 and 1080p30 presets should "just work" without any extra effort on your part.
    The 1080p24 preset is a different story...Most camcorders don't store the 24p signal as a 24p bitstream. Instead, they run this convoluted process of converting the sensor's 24p-signal through a pulldown-algorithm, and the result is stored in an interlaced-bitstream.  PE8 cannot 'recover' the original 24p sequence from the interlaced-bitstream (the 24p frames are in there, but they're not marked as such.) So when you try to import this kind of footage into a PE8 project, the video suffers all sorts of visual problems (skipped frames, duplictaed frames, horizontal lines, etc.) The only solution around this is to use a third-party deinterlacing program, which adds considerable time&expense.
    Now if you happen to have one of the handful of "native 24p" or "true  24p" camcorders (Canon HV-40, HF-S20/S21/S200, Panasonic SD9), these camcorders record the 24p-footage in a true 24p bitstream.  PE8 will import these just fine, without any extra effort on your part.  (Likewise, the Canon T2i/550D, 7D, and 5D Mark II record 24p in a true 24p bitstream.)
    If you're interested in trying the progressive-scan presets, download them from this link:http://forums.adobe.com/thread/605768?tstart=0

  • Why among plans of a subscription of Creative Cloud there is no user option of a subscription? Why there is no universal plan of a subscription for Photoshop, Illustrator, InDesign, Dreamweaver, Acrobat Pro - the most running appes? Thanks.

    Why among plans of a subscription of Creative Cloud there is no user option of a subscription?
    Why there is no universal plan of a subscription for Photoshop, Illustrator, InDesign, Dreamweaver, Acrobat Pro - the most running apes?
    Thanks.

    there is the complete plan, Creative Cloud pricing and membership plans | Adobe Creative Cloud

  • Why there is no account entry in GL account which link to VBR and GBB.

    Hi,
    I am trying to understand about transaction event key GBB. As per my knowledge, GBB is offsetting entry for Inventry BSX. There are many general modifier VBR, AUF, BSA etc under under GBB.
    GL account '400082' has been assign to VBR for the material valution class ZVL1 and valution grouping code 0001.
    I have issued material with movement type 201 for consumption (Cost Center) from stock. Hence there should be some account entry to GL account 400082 which link to VBR under GBB. I can see the accounting entry in inventry account and consumption accountm, but I can not see any entry in GL account that link to VBR. I am checking accounting entry in transaction code - FBL3N.
    Please let me know why there is no entry to GL account that link to VBR and GBB. Appreciate if you can give some input about GBB concept with example.
    Thanks in advance.
    Regards,
    sp sahu

    Hi,
    General modification key (Account modifier ) VBR is used for  for 201 movement type where goods issue to cost center.You can also cross check in OME9 t.code where VBR Acct modification is assigned with cost object K.After posting goods issue with 201 movement type, you can cross check the accounting  document ( by proper setting layout) where you can find
    Account description...............................Transaction
    Inventory A/C: ..................Cr.................BSX
    Consumption A/C: ..............Dr................GBB
    NOTE: In t.code:FBL3N, you will get document type of accounting document(WE,RE,ML,KZ,KE,UP etc) in main screen, but you can view  all details by clicking document number and in next screen press F9 button.( by proper setting layout)
    Regards,
    Biju K

  • Why there is not an option to unable to 3G and use 2G on iPhone 4S ? It's awful! When will you fix that ?

    Why there is not an option to unable the 3G and use 2G on iPhone 4S ? It's awful! When will you fix that ? What are we gonna do now? I cant believe Apple can do it, like the battery of iPhone 4S is amazing. Everyday I should charge my phone! It doesnt make sense...

    YOu can't disable the camera - this feature came out with IOS 5.
    You will have to set your passcode lock to immediately.  settings - general - passcode lock.

  • Why there is no multitasking gestures on ipad 1 ,but it is on ipad 2

    Why there is no multitasking gestures on ipad 1, but it is on ipad 2 !?!?
    I need an answer.......because this is not fair.......

    Only Apple could answer that and Apple does not post here. As to whether or not it's fair, life is not fair.
    Submit your feedback directly to Apple using the appropriate link on the Feedback page:
    http://www.apple.com/feedback

  • Why there is no engraving when I received my iPad 2?

    Why there is no engraving on my ipad2 when I received?

    If you Ordered Engraving and did not get it... Contact Apple...
    Apple Contact USA
    http://www.apple.com/contact/
    Contacting Apple World Wide for Support and Service
    http://support.apple.com/kb/HE57

Maybe you are looking for