JavaTM 2 Platform
Standard Ed. 5.0

java.security
Ŭ·¡½º GuardedObject

java.lang.Object 
  »óÀ§¸¦ È®Àå java.security.GuardedObject
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
Serializable

public class GuardedObject
extends Object
implements Serializable

GuardedObject´Â ´Ù¸¥ °´Ã¼¿¡ÀÇ ¾×¼¼½º·ÎºÎÅÍ º¸È£Çϱâ À§ÇÑ °´Ã¼ÀÔ´Ï´Ù.

GuardedObject´Â Ÿ°Ù °´Ã¼¿Í Guard °´Ã¼¸¦ ĸ½¶È­ÇÕ´Ï´Ù. ÀÌ°Í¿¡ ÀÇÇØ Å¸°Ù °´Ã¼¿¡ÀÇ ¾×¼¼½º´Â Guard °´Ã¼°¡ Çã°¡ÇßÀ» °æ¿ì¿¡ ÇÑÁ¤ÇØ °¡´ÉÇÏ°Ô µË´Ï´Ù. °´Ã¼°¡ GuardedObject¿¡ ÀÇÇØ Ä¸½¶È­µÇ¸é, ±× °´Ã¼¿¡ÀÇ ¾×¼¼½º´Â getObject ¸Þ¼­µå¿¡ ÀÇÇØ Á¦¾îµË´Ï´Ù. getObject´Â ¾×¼¼½º¸¦ Á¦¾îÇÏ°í ÀÖ´Â Guard °´Ã¼ÀÇ checkGuard ¸Þ¼­µå¸¦ È£ÃâÇÕ´Ï´Ù. ¾×¼¼½º°¡ Çã°¡µÇÁö ¾Ê¾Ò´ø °æ¿ì´Â ¿¹¿Ü°¡ ¹ß»ý µË´Ï´Ù.

°ü·Ã Ç׸ñ:
Guard, Permission, Á÷·ÄÈ­ µÈ Çü½Ä

»ý¼ºÀÚ °³¿ä
GuardedObject (Object  object, Guard  guard)
          ÁöÁ¤µÈ °´Ã¼¿Í °¡À̵å·Î GuardedObject¸¦ ±¸ÃàÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 Object getObject ()
          °¡À̵尡 ÀÖ´Â °´Ã¼¸¦ ²¨³À´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

GuardedObject

public GuardedObject(Object  object,
                     Guard  guard)
ÁöÁ¤µÈ °´Ã¼¿Í °¡À̵å·Î GuardedObject¸¦ ±¸ÃàÇÕ´Ï´Ù. Guard °´Ã¼°¡ nullÀÎ °æ¿ì´Â °´Ã¼¿¡ÀÇ ¾×¼¼½º¿¡ Á¦ÇÑÀº ¾ø½À´Ï´Ù.

ÆĶó¹ÌÅÍ:
object - °¡À̵åÀÇ ´ë»óÀÌ µÇ´Â °´Ã¼
guard - °´Ã¼¿¡ÀÇ ¾×¼¼½º¸¦ Á¦¾îÇÏ´Â Guard °´Ã¼
¸Þ¼­µåÀÇ »ó¼¼

getObject

public Object  getObject()
                 throws SecurityException 
°¡À̵尡 ÀÖ´Â °´Ã¼¸¦ ²¨³À´Ï´Ù. °¡À̵尡 ÀÖ´Â °´Ã¼¿¡ÀÇ ¾×¼¼½º°¡ °¡À̵忡 ÀÇÇØ °ÅºÎµÇ¾úÀ» °æ¿ì´Â ¿¹¿Ü¸¦ Throw ÇÕ´Ï´Ù.

¹Ýȯ°ª:
°¡À̵尡 ÀÖ´Â °´Ã¼
¿¹¿Ü:
SecurityException - °¡À̵尡 ÀÖ´Â °´Ã¼¿¡ÀÇ ¾×¼¼½º°¡ °ÅºÎµÇ¾úÀ» °æ¿ì

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.