±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 889  |  »Ø¸´: 1
±¾Ìû²úÉú 1 ¸ö ·­ÒëEPI £¬µã»÷ÕâÀï½øÐв鿴

einsteinjw

Òø³æ (СÓÐÃûÆø)

[ÇóÖú] ¼±Çó°ïÖúÎÒ·­Òë³ÉÖÐÎÄ

The java.security.AccessController class is part of Java¡¯s security mechanism; it is
responsible for enforcing the applicable security policy. This class¡¯s static doPrivileged() method executes a code block with a relaxed security policy. The doPrivileged() method stops permissions from being checked further down the call chain. Consequently, any method that invokes doPrivileged() must assume responsibility for enforcing its own security on the code block supplied to doPrivileged(). Likewise, code in the doPrivileged() method must not leak sensitive information or capabilities. For example, suppose that a web application must maintain a sensitive password file for a web service and also run untrusted code. The application could then enforce a security policy preventing the majority of its own code¡ªas well as all untrusted code¡ªfrom accessing the sensitive file. Because it must also provide mechanisms for adding and changing passwords, it can call the doPrivileged() method to temporarily allow untrusted code to access the sensitive file for the purpose of managing passwords. In this case, any privileged block must prevent any information about passwords from being accessible to untrusted code.

» ²ÂÄãϲ»¶

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

zcius

ÖÁ×ðľ³æ (ÖªÃû×÷¼Ò)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

einsteinjw(½ð±Ò+20, ·­ÒëEPI+1): 2012-02-14 12:56:44
sltmac(½ð±Ò+20): 2012-02-24 09:37:58
Java.security.AccessController ÀàÊÇ Java °²È«»úÖÆµÄÒ»²¿·ÖµÄ£»Ëü¸ºÔðÖ´ÐпÉÓõݲȫ²ßÂÔ¡£¸ÃÀྲ̬µÄ doPrivileged() ·½·¨Ö´ÐпíËɰ²È«²ßÂԵĴúÂë¶Î¡£DoPrivileged() ·½·¨×èÖ¹µ÷ÓÃÁ´ÉϵÄÐí¿É¼ì²é¡£Òò´Ë£¬µ÷ÓÃdoPrivileged() µÄÈκη½·¨±ØÐë×Ô¼º¸ºÔðÌṩ¸ø doPrivileged() µÄ´úÂë¶ÎµÄ°²È«¡£Í¬Ñù£¬doPrivileged() ·½·¨ÖеĴúÂë²»ÄÜй©Ãô¸ÐÐÅÏ¢»ò¹¦ÄÜ¡£ÀýÈ磬¼ÙÉè web Ó¦ÓóÌÐò±ØÐëά»¤Ò»¸öweb ·þÎñµÄÃô¸ÐµÄÃÜÂëÎļþµÄ£¬»¹ÒªÔËÐв»ÐÅÈεĴúÂ룬ÔòÓ¦ÓóÌÐò¿ÉÒÔÖ´ÐÐÒ»¸ö°²È«²ßÂÔ£¬·ÀÖ¹×Ô¼ºµÄ´ó²¿·Ö´úÂëÒÔ¼°ËùÓв»ÐÅÈεĴúÂë·ÃÎÊÃô¸ÐµÄÃÜÂëÎļþ¡£ÓÉÓÚ±ØÐëÌṩÌí¼ÓºÍÐÞ¸ÄÃÜÂëµÄ»úÖÆ£¬»¹µÃÄܵ÷Óà doPrivileged() ·½·¨£¬ÔÝʱÔÊÐí²»ÐÅÈεĴúÂë·ÃÎÊÃô¸ÐµÄÃÜÂëÎļþ£¬¹ÜÀíÃÜÂë¡£ÔÚ´ËÇé¿öÏ£¬ÈκÎÌØÈ¨µÄÄ£¿é±ØÐë·ÀÖ¹²»ÐÅÈεĴúÂë·ÃÎÊÃÜÂëÐÅÏ¢¡£
2Â¥2012-02-14 05:38:51
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ einsteinjw µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] Ò»Ö¾Ô¸Ö£ÖÝ´óѧ085600Çóµ÷¼Á +9 ³ÔµÄ²»ÉÙ 2026-04-05 10/500 2026-04-05 21:02 by ѧԱ8dgXkO
[¿¼ÑÐ] Ò»Ö¾Ô¸9²ÄÁÏѧ˶297ÒѹýÁù¼¶Çóµ÷¼ÁÍÆ¼ö +11 adaie 2026-04-04 12/600 2026-04-05 19:04 by À¶ÔÆË¼Óê
[¿¼ÑÐ] ²ÄÁÏר˶(0856) 339·ÖÇóµ÷¼Á +10 ¹þ¹þ¹þ¶ì¹þ¹þ¹þ 2026-04-04 10/500 2026-04-05 18:51 by À¶ÔÆË¼Óê
[¿¼ÑÐ] 346·ÖµÄÉúÎïÓëÒ½Ò©08600Çóµ÷¼Á +5 ³£ÓêÑôÉϰ¶ 2026-04-05 6/300 2026-04-05 13:42 by imissbao
[¿¼ÑÐ] µ÷¼Á +3 ºÃºÃ¶ÁÊé¡£ 2026-04-02 3/150 2026-04-05 13:02 by arrow8852
[¿¼ÑÐ] ²ÄÁϵ÷¼Á +7 dxyµ÷¼Á 2026-04-04 7/350 2026-04-05 09:15 by İÇï26
[¿¼ÑÐ] 26¿¼Ñе÷¼Á0710 0860 +9 ²¹²¹²»²¹ 2026-04-03 14/700 2026-04-04 23:32 by ¹û¶³´óÍõ
[¿¼ÑÐ] Çóµ÷¼Á +4 êɹ¦? 2026-04-03 4/200 2026-04-04 21:58 by hemengdong
[¿¼ÑÐ] 315Çóµ÷¼Á +13 СÑòСÑò_ 2026-04-02 14/700 2026-04-04 20:30 by À¶ÔÆË¼Óê
[¿¼ÑÐ] ¿¼Ñе÷¼Á +3 15615482637 2026-04-03 3/150 2026-04-03 22:50 by ms629
[¿¼ÑÐ] Êý¶þÓ¢¶þ348Çóµ÷¼Á +4 hxdzj1 2026-04-03 5/250 2026-04-03 21:25 by zhq0425
[¿¼ÑÐ] 320Çóµ÷¼Á +3 ũҵ¹¤³ÌÓëÐÅÏ¢¼ 2026-04-03 3/150 2026-04-03 11:40 by ÍÁľ˶ʿÕÐÉú
[¿¼ÑÐ] 303Çóµ÷¼Á +3 һɫÇåÓð 2026-04-02 4/200 2026-04-03 10:22 by À¶ÔÆË¼Óê
[¿¼ÑÐ] 279Çóµ÷¼Á +6 qazplm0852 2026-04-02 6/300 2026-04-03 10:03 by À¶ÔÆË¼Óê
[¿¼ÑÐ] Ò»Ö¾Ô¸ÉϺ£º£Ñó´óѧ083200ʳƷѧ˶£¬Çóµ÷¼Á£¬½ÓÊÜÆäËûרҵ +6 whatÕÅ 2026-04-01 7/350 2026-04-02 16:48 by zzsw+
[¿¼ÑÐ] 26¿¼Ñе÷¼Á +4 Wnz.20030617 2026-04-01 5/250 2026-04-02 16:11 by 1939136013¹·×³
[¿¼ÑÐ] 262Çóµ÷¼Á +9 ÀøÖ¾Ò»¶¨·¢ÎÄÕ 2026-03-31 10/500 2026-04-01 12:22 by sunshine0013
[¿¼ÑÐ] 318Çóµ÷¼Á +8 ÆßÒä77 2026-04-01 8/400 2026-04-01 10:37 by Jaylen.
[¿¼ÑÐ] ÉúÎÑÐ337·ÖÇóµ÷¼Á +4 cgxin 2026-03-30 6/300 2026-03-31 14:18 by ¼Çʱ¾2026
[¿¼ÑÐ] 370Çóµ÷¼Á +3 080700µ÷¼Á 2026-03-30 3/150 2026-03-31 01:09 by A_Zhe
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û