1 7 8 package javax.management; 9 10 import java.security.BasicPermission ; 11 12 30 public class MBeanTrustPermission extends BasicPermission { 31 32 private static final long serialVersionUID = -2952178077029018140L; 33 34 43 public MBeanTrustPermission(String name) { 44 this(name, null); 45 } 46 47 57 public MBeanTrustPermission(String name, String actions) { 58 super(name, actions); 59 60 if (actions != null && actions.length() > 0) 61 throw new IllegalArgumentException ("MBeanTrustPermission " + 62 "actions must be null: " + 63 actions); 64 65 if (!name.equals("register") && !name.equals("*")) 66 throw new IllegalArgumentException ("MBeanTrustPermission: " + 67 "Unknown target name " + 68 "[" + name + "]"); 69 } 70 } 71 | Popular Tags |