1 7 8 9 package java.util.logging; 10 11 import java.security.*; 12 13 37 38 public final class LoggingPermission extends java.security.BasicPermission { 39 40 private static final long serialVersionUID = 63564341580231582L; 41 42 49 public LoggingPermission(String name, String actions) throws IllegalArgumentException { 50 super(name); 51 if (!name.equals("control")) { 52 throw new IllegalArgumentException ("name: " + name); 53 } 54 if (actions != null && actions.length() > 0) { 55 throw new IllegalArgumentException ("actions: " + actions); 56 } 57 } 58 } 59 | Popular Tags |