JavaTM 2 Platform
Standard Ed. 5.0

java.security.acl
ÀÎÅÍÆäÀ̽º Owner

¾Ë·ÁÁø ¼­ºê ÀÎÅÍÆäÀ̽º ¸ñ·Ï :
Acl

public interface Owner

º¹¼öÀÇ ¾×¼¼½º Á¦¾î ¸®½ºÆ® (ACL)ÀÇ ¼ÒÀ¯ÀÚ ¶Ç´Â ACL ¼³Á¤À» °ü¸®Çϱâ À§ÇÑ ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù (java.security.acl ÆÐŰÁöÀÇ Acl ÀÎÅÍÆäÀ̽º°¡ ÀÌ Owner ÀÎÅÍÆäÀ̽º¸¦ È®ÀåÇÏ´Â °Í¿¡ ÁÖÀÇ). Ãʱ⠼ÒÀ¯ÀÚ Principal´Â ÀÌ ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇϴ Ŭ·¡½ºÀÇ »ý¼ºÀÚ¿¡ ´ëÇÑ Àμö·Î¼­ ÁöÁ¤ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.

°ü·Ã Ç׸ñ:
Acl

¸Þ¼­µå °³¿ä
 boolean addOwner (Principal  caller, Principal  owner)
          ¼ÒÀ¯ÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù.
 boolean deleteOwner (Principal  caller, Principal  owner)
          ¼ÒÀ¯ÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù.
 boolean isOwner (Principal  owner)
          ÁöÁ¤µÈ ÁÖü°¡ ACL ¼ÒÀ¯ÀÚÀÎ °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 

¸Þ¼­µåÀÇ »ó¼¼

addOwner

boolean addOwner(Principal  caller,
                 Principal  owner)
                 throws NotOwnerException 
¼ÒÀ¯ÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù. ¼ÒÀ¯ÀÚ¸¸ÀÌ, ACL ³»¿ëÀ» ¼öÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù . ÀÌ È£ÃâÃøÀÇ ÁÖü´Â ÀÌ ¸Þ¼­µå¸¦ È£ÃâÇÏ·Á¸é ACL ¼ÒÀ¯ÀÚ°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù. Áï, ¼ÒÀ¯ÀÚ ¹Û¿¡ ´Ù¸¥ ¼ÒÀ¯ÀÚ¸¦ Ãß°¡ÇÒ ¼ö°¡ ¾ø½À´Ï´Ù. ÀÌ Ãʱ⠼ÒÀ¯ÀÚ´Â ACL ±¸Ãà½Ã·Î ¼³Á¤µË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
caller - ÀÌ ¸Þ¼­µå¸¦ ½ÃÀÛÇÏ´Â ÁÖü. ÀÌ ACL ¼ÒÀ¯ÀÚ°¡ ¾Æ´Ï¸é ¾ÈµÇ´Â
owner - ¼ÒÀ¯ÀÚÀÇ ¸®½ºÆ®¿¡ Ãß°¡ÇØ¾ß ÇÒ ¼ÒÀ¯ÀÚ
¹Ýȯ°ª:
¼º°øÇßÀ» °æ¿ì´Â true, ¼ÒÀ¯ÀÚ°¡ ÀÌ¹Ì ¸®½ºÆ®¿¡ ÀÖ¾úÀ» °æ¿ì´Â false
¿¹¿Ü:
NotOwnerException - È£ÃâÇÏ´Â ÁÖü°¡ ÀÌ ACL ¼ÒÀ¯ÀÚ°¡ ¾Æ´Ñ °æ¿ì

deleteOwner

boolean deleteOwner(Principal  caller,
                    Principal  owner)
                    throws NotOwnerException,

                           LastOwnerException 
¼ÒÀ¯ÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù. »èÁ¦ÇÏ´Â ¼ÒÀ¯ÀÚ°¡ ACL ÁßÀÇ ÃÖÁ¾ ¼ÒÀ¯ÀÚÀÎ °æ¿ì´Â ¿¹¿Ü°¡ ¹ß»ýÇÕ´Ï´Ù.

È£ÃâÃøÀÇ ÁÖü´Â ÀÌ ¸Þ¼­µå¸¦ È£ÃâÇÏ·Á¸é ACL ¼ÒÀ¯ÀÚ°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
caller - ÀÌ ¸Þ¼­µå¸¦ ½ÃÀÛÇÏ´Â ÁÖü. ÀÌ ACL ¼ÒÀ¯ÀÚ°¡ ¾Æ´Ï¸é ¾ÈµÇ´Â
owner - ¼ÒÀ¯ÀÚÀÇ ¸®½ºÆ®·ÎºÎÅÍ »èÁ¦µÇ´Â ¼ÒÀ¯ÀÚ
¹Ýȯ°ª:
¼ÒÀ¯ÀÚ°¡ »èÁ¦µÇ¾úÀ» °æ¿ì´Â true, ¼ÒÀ¯ÀÚ°¡ ¼ÒÀ¯ÀÚ ¸®½ºÆ®¿¡ Á¸ÀçÇÏÁö ¾Ê¾Ò´ø °æ¿ì´Â false
¿¹¿Ü:
NotOwnerException - È£ÃâÇÏ´Â ÁÖü°¡ ÀÌ ACL ¼ÒÀ¯ÀÚ°¡ ¾Æ´Ñ °æ¿ì
LastOwnerException - ¼ÒÀ¯ÀÚ°¡ ¸®½ºÆ®³»¿¡ 1°³ ¹Û¿¡ ³²Áö ¾Ê°í, deleteOwner °á°ú ACL¿¡ ¼ÒÀ¯ÀÚ°¡ Á¸ÀçÇÏÁö ¾Ê°Ô µÇ´Â °æ¿ì

isOwner

boolean isOwner(Principal  owner)
ÁöÁ¤µÈ ÁÖü°¡ ACL ¼ÒÀ¯ÀÚÀÎ °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
owner - ÁÖü°¡ ¼ÒÀ¯ÀÚÀÏÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÏ´Â ÁÖü
¹Ýȯ°ª:
°Ç³×¹ÞÀº ÁÖü°¡ ¼ÒÀ¯ÀÚÀÇ ¸®½ºÆ®¿¡ Á¸ÀçÇÏ´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false

JavaTM 2 Platform
Standard Ed. 5.0

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