home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / security / Permission.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.3 KB  |  41 lines

  1. package java.security;
  2.  
  3. import java.io.Serializable;
  4.  
  5. public abstract class Permission implements Guard, Serializable {
  6.    private String name;
  7.  
  8.    public Permission(String var1) {
  9.       this.name = var1;
  10.    }
  11.  
  12.    public void checkGuard(Object var1) throws SecurityException {
  13.       SecurityManager var2 = System.getSecurityManager();
  14.       if (var2 != null) {
  15.          var2.checkPermission(this);
  16.       }
  17.  
  18.    }
  19.  
  20.    public abstract boolean implies(Permission var1);
  21.  
  22.    public abstract boolean equals(Object var1);
  23.  
  24.    public abstract int hashCode();
  25.  
  26.    public final String getName() {
  27.       return this.name;
  28.    }
  29.  
  30.    public abstract String getActions();
  31.  
  32.    public PermissionCollection newPermissionCollection() {
  33.       return null;
  34.    }
  35.  
  36.    public String toString() {
  37.       String var1 = this.getActions();
  38.       return var1 != null && var1.length() != 0 ? "(" + this.getClass().getName() + " " + this.name + " " + var1 + ")" : "(" + this.getClass().getName() + " " + this.name + ")";
  39.    }
  40. }
  41.