home *** CD-ROM | disk | FTP | other *** search
- package java.security;
-
- import java.io.Serializable;
- import java.util.Enumeration;
-
- final class AllPermissionCollection extends PermissionCollection implements Serializable {
- private static final long serialVersionUID = -4023755556366636806L;
- private boolean all_allowed = false;
-
- public AllPermissionCollection() {
- }
-
- public void add(Permission var1) {
- if (!(var1 instanceof AllPermission)) {
- throw new IllegalArgumentException("invalid permission: " + var1);
- } else if (((PermissionCollection)this).isReadOnly()) {
- throw new SecurityException("attempt to add a Permission to a readonly PermissionCollection");
- } else {
- this.all_allowed = true;
- }
- }
-
- public boolean implies(Permission var1) {
- return this.all_allowed;
- }
-
- public Enumeration elements() {
- return new 1(this);
- }
-
- // $FF: synthetic method
- static boolean access$000(AllPermissionCollection var0) {
- return var0.all_allowed;
- }
- }
-