this(name, getMask(actions));
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); init(getMask(actions)); } }
ServicePermission x; int desired = sp.getMask(); int effective = 0; x = (ServicePermission) permissions.get("*"); if (x != null) { effective |= x.getMask(); if ((effective & desired) == desired) return (true); effective |= x.getMask(); if ((effective & desired) == desired) return (true); effective |= x.getMask(); if ((effective & desired) == desired) return (true);