home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2003 January / maximum-cd-2003-01.iso / Software / Apps / OperawithJava / ow32enen700b1j.exe / OPERA.JAR / netscape / security / Principal.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-11-05  |  1.6 KB  |  77 lines

  1. package netscape.security;
  2.  
  3. import java.net.URL;
  4.  
  5. public class Principal {
  6.    public static final int CODEBASE_EXACT = 1;
  7.    public static final int CODEBASE_REGEXP = 2;
  8.    public static final int CERT = 3;
  9.    public static final int CERT_FINGERPRINT = 4;
  10.    public static final int CERT_KEY = 5;
  11.    private int type = 3;
  12.    private URL url = null;
  13.  
  14.    public Principal() {
  15.    }
  16.  
  17.    public Principal(URL var1) {
  18.       this.url = var1;
  19.    }
  20.  
  21.    public Principal(int var1, String var2) {
  22.       this.type = var1;
  23.    }
  24.  
  25.    public Principal(int var1, byte[] var2) {
  26.       this.type = var1;
  27.    }
  28.  
  29.    public Principal(int var1, byte[] var2, Class var3) {
  30.       this.type = var1;
  31.    }
  32.  
  33.    public boolean isCodebase() {
  34.       return this.isCodebaseExact() || this.isCodebaseRegexp();
  35.    }
  36.  
  37.    public boolean isCodebaseExact() {
  38.       return this.type == 1;
  39.    }
  40.  
  41.    public boolean isCodebaseRegexp() {
  42.       return this.type == 2;
  43.    }
  44.  
  45.    public boolean isCert() {
  46.       return this.type == 3;
  47.    }
  48.  
  49.    public boolean isCertFingerprint() {
  50.       return this.type == 4;
  51.    }
  52.  
  53.    public String toVerboseString() {
  54.       return this.toString();
  55.    }
  56.  
  57.    public String getVendor() {
  58.       return null;
  59.    }
  60.  
  61.    public String toVerboseHtml() {
  62.       return null;
  63.    }
  64.  
  65.    public String getNickname() {
  66.       return null;
  67.    }
  68.  
  69.    public boolean isSystemPrincipal() {
  70.       return false;
  71.    }
  72.  
  73.    public static int getZigPtr(Class var0) {
  74.       return -1;
  75.    }
  76. }
  77.