123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- package javax.management;
- import java.security.BasicPermission;
- public class MBeanTrustPermission
- extends BasicPermission
- {
-
- private static final long serialVersionUID = -2952178077029018140L;
-
- public MBeanTrustPermission(String target)
- {
- this(target, null);
- }
-
- public MBeanTrustPermission(String target, String actions)
- {
- super(target, actions);
- if ((!(target.equals("register"))) &&
- (!(target.equals("*"))))
- throw new IllegalArgumentException("The target must be 'register' or '*'");
- if (actions != null && !(actions.length() == 0))
- throw new IllegalArgumentException("The actions must be null or ''");
- }
- }
|