plugin

16:51:01.231 INFO  jd.cli.Main - Decompiling plugin.jar
package com.sun.java.browser.plugin2;

import java.applet.Applet;
import netscape.javascript.JSException;
import netscape.javascript.JSObject;
import org.w3c.dom.DOMException;
import org.w3c.dom.Document;
import sun.plugin.dom.DOMObject;
import sun.plugin.dom.html.HTMLDocument;

public class DOM
{
  public static final Document getDocument(Applet paramApplet)
    throws DOMException
  {
    try
    {
      JSObject localJSObject1 = JSObject.getWindow(paramApplet);
      JSObject localJSObject2 = (JSObject)localJSObject1.getMember("document");
      DOMObject localDOMObject = new DOMObject(localJSObject2);
      return new HTMLDocument(localDOMObject, null);
    }
    catch (JSException localJSException)
    {
      throw ((DOMException)new DOMException((short)9, "Error fetching document for applet").initCause(localJSException));
    }
  }
}

/* Location:
 * Qualified Name:     com.sun.java.browser.plugin2.DOM
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.java.browser.plugin2.liveconnect.v1;

public abstract interface Bridge
{
  public abstract void register(InvocationDelegate paramInvocationDelegate);
  
  public abstract void unregister(InvocationDelegate paramInvocationDelegate);
  
  public abstract void register(ConversionDelegate paramConversionDelegate);
  
  public abstract void unregister(ConversionDelegate paramConversionDelegate);
  
  public abstract int conversionCost(Object paramObject1, Object paramObject2);
  
  public abstract Object convert(Object paramObject1, Object paramObject2)
    throws Exception;
}

/* Location:
 * Qualified Name:     com.sun.java.browser.plugin2.liveconnect.v1.Bridge
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.java.browser.plugin2.liveconnect.v1;

import java.applet.Applet;
import sun.plugin2.main.client.LiveConnectSupport;

public final class BridgeFactory
{
  public static Bridge getBridge(Applet paramApplet)
    throws IllegalArgumentException, SecurityException
  {
    SecurityManager localSecurityManager = System.getSecurityManager();
    if (localSecurityManager != null) {
      localSecurityManager.checkPermission(new RuntimePermission("liveconnect.accessBridge"));
    }
    return LiveConnectSupport.getBridge(paramApplet);
  }
}

/* Location:
 * Qualified Name:     com.sun.java.browser.plugin2.liveconnect.v1.BridgeFactory
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.java.browser.plugin2.liveconnect.v1;

public abstract interface ConversionDelegate
{
  public abstract int conversionCost(Object paramObject1, Object paramObject2);
  
  public abstract boolean convert(Object paramObject1, Object paramObject2, Object[] paramArrayOfObject)
    throws Exception;
}

/* Location:
 * Qualified Name:     com.sun.java.browser.plugin2.liveconnect.v1.ConversionDelegate
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.java.browser.plugin2.liveconnect.v1;

public abstract interface InvocationDelegate
{
  public abstract boolean invoke(String paramString, Object paramObject, Object[] paramArrayOfObject, boolean paramBoolean1, boolean paramBoolean2, Result[] paramArrayOfResult)
    throws Exception;
  
  public abstract boolean getField(String paramString, Object paramObject, boolean paramBoolean1, boolean paramBoolean2, Result[] paramArrayOfResult)
    throws Exception;
  
  public abstract boolean setField(String paramString, Object paramObject1, Object paramObject2, boolean paramBoolean1, boolean paramBoolean2)
    throws Exception;
  
  public abstract boolean hasField(String paramString, Object paramObject, boolean paramBoolean1, boolean paramBoolean2, boolean[] paramArrayOfBoolean);
  
  public abstract boolean hasMethod(String paramString, Object paramObject, boolean paramBoolean1, boolean paramBoolean2, boolean[] paramArrayOfBoolean);
  
  public abstract boolean hasFieldOrMethod(String paramString, Object paramObject, boolean paramBoolean1, boolean paramBoolean2, boolean[] paramArrayOfBoolean);
  
  public abstract Object findClass(String paramString);
  
  public abstract Object newInstance(Object paramObject, Object[] paramArrayOfObject)
    throws Exception;
}

/* Location:
 * Qualified Name:     com.sun.java.browser.plugin2.liveconnect.v1.InvocationDelegate
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.java.browser.plugin2.liveconnect.v1;

public final class JavaNameSpace
{
  private String name;
  
  public JavaNameSpace(String paramString)
  {
    name = paramString;
  }
  
  public String getName()
  {
    return name;
  }
}

/* Location:
 * Qualified Name:     com.sun.java.browser.plugin2.liveconnect.v1.JavaNameSpace
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.java.browser.plugin2.liveconnect.v1;

public final class Result
{
  private Object value;
  private boolean skipUnboxing;
  
  public Result(Object paramObject, boolean paramBoolean)
  {
    value = paramObject;
    skipUnboxing = paramBoolean;
  }
  
  public Object value()
  {
    return value;
  }
  
  public boolean skipUnboxing()
  {
    return skipUnboxing;
  }
}

/* Location:
 * Qualified Name:     com.sun.java.browser.plugin2.liveconnect.v1.Result
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package netscape.javascript;

public class JSException
  extends RuntimeException
{
  /**
   * @deprecated
   */
  public static final int EXCEPTION_TYPE_EMPTY = -1;
  /**
   * @deprecated
   */
  public static final int EXCEPTION_TYPE_VOID = 0;
  /**
   * @deprecated
   */
  public static final int EXCEPTION_TYPE_OBJECT = 1;
  /**
   * @deprecated
   */
  public static final int EXCEPTION_TYPE_FUNCTION = 2;
  /**
   * @deprecated
   */
  public static final int EXCEPTION_TYPE_STRING = 3;
  /**
   * @deprecated
   */
  public static final int EXCEPTION_TYPE_NUMBER = 4;
  /**
   * @deprecated
   */
  public static final int EXCEPTION_TYPE_BOOLEAN = 5;
  /**
   * @deprecated
   */
  public static final int EXCEPTION_TYPE_ERROR = 6;
  /**
   * @deprecated
   */
  protected String message = null;
  /**
   * @deprecated
   */
  protected String filename = null;
  /**
   * @deprecated
   */
  protected int lineno = -1;
  /**
   * @deprecated
   */
  protected String source = null;
  /**
   * @deprecated
   */
  protected int tokenIndex = -1;
  /**
   * @deprecated
   */
  private int wrappedExceptionType = -1;
  /**
   * @deprecated
   */
  private Object wrappedException = null;
  
  public JSException()
  {
    this(null);
  }
  
  public JSException(String paramString)
  {
    this(paramString, null, -1, null, -1);
  }
  
  /**
   * @deprecated
   */
  public JSException(String paramString1, String paramString2, int paramInt1, String paramString3, int paramInt2)
  {
    super(paramString1);
    message = paramString1;
    filename = paramString2;
    lineno = paramInt1;
    source = paramString3;
    tokenIndex = paramInt2;
    wrappedExceptionType = -1;
  }
  
  /**
   * @deprecated
   */
  public JSException(int paramInt, Object paramObject)
  {
    this();
    wrappedExceptionType = paramInt;
    wrappedException = paramObject;
  }
  
  /**
   * @deprecated
   */
  public int getWrappedExceptionType()
  {
    return wrappedExceptionType;
  }
  
  /**
   * @deprecated
   */
  public Object getWrappedException()
  {
    return wrappedException;
  }
}

/* Location:
 * Qualified Name:     netscape.javascript.JSException
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package netscape.javascript;

import java.applet.Applet;
import sun.awt.AppContext;
import sun.plugin.javascript.JSContext;

public abstract class JSObject
{
  public abstract Object call(String paramString, Object[] paramArrayOfObject)
    throws JSException;
  
  public abstract Object eval(String paramString)
    throws JSException;
  
  public abstract Object getMember(String paramString)
    throws JSException;
  
  public abstract void setMember(String paramString, Object paramObject)
    throws JSException;
  
  public abstract void removeMember(String paramString)
    throws JSException;
  
  public abstract Object getSlot(int paramInt)
    throws JSException;
  
  public abstract void setSlot(int paramInt, Object paramObject)
    throws JSException;
  
  public static JSObject getWindow(Applet paramApplet)
    throws JSException
  {
    try
    {
      Object localObject1;
      Object localObject2;
      Object localObject3;
      Object localObject4;
      if (paramApplet != null)
      {
        localObject1 = paramApplet.getParameter("MAYSCRIPT");
        localObject2 = paramApplet.getAppletContext();
        localObject3 = null;
        if ((localObject2 instanceof JSContext))
        {
          localObject4 = (JSContext)localObject2;
          localObject3 = ((JSContext)localObject4).getJSObject();
        }
        if (localObject3 != null) {
          return (JSObject)localObject3;
        }
      }
      else
      {
        localObject1 = AppContext.getAppContext();
        if (localObject1 != null)
        {
          localObject2 = ((AppContext)localObject1).get("AppletContextKey");
          if ((localObject2 != null) && ((localObject2 instanceof JSContext)))
          {
            localObject3 = (JSContext)localObject2;
            localObject4 = ((JSContext)localObject3).getOneWayJSObject();
            if (localObject4 != null) {
              return (JSObject)localObject4;
            }
          }
        }
      }
    }
    catch (Throwable localThrowable)
    {
      throw ((JSException)new JSException(6, localThrowable).initCause(localThrowable));
    }
    throw new JSException();
  }
}

/* Location:
 * Qualified Name:     netscape.javascript.JSObject
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package netscape.javascript;

import java.io.ByteArrayOutputStream;
import java.io.PrintWriter;

public class JSUtil
{
  public static String getStackTrace(Throwable paramThrowable)
  {
    ByteArrayOutputStream localByteArrayOutputStream = new ByteArrayOutputStream();
    PrintWriter localPrintWriter = new PrintWriter(localByteArrayOutputStream);
    paramThrowable.printStackTrace(localPrintWriter);
    localPrintWriter.flush();
    return localByteArrayOutputStream.toString();
  }
}

/* Location:
 * Qualified Name:     netscape.javascript.JSUtil
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package netscape.security;

public class ForbiddenTargetException
  extends RuntimeException
{
  public ForbiddenTargetException() {}
  
  public ForbiddenTargetException(String paramString)
  {
    super(paramString);
  }
}

/* Location:
 * Qualified Name:     netscape.security.ForbiddenTargetException
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package netscape.security;

public class ParameterizedTarget
  extends UserTarget
{
  protected ParameterizedTarget() {}
  
  public ParameterizedTarget(String paramString1, Principal paramPrincipal, String paramString2, String paramString3, String paramString4, String paramString5)
  {
    super(paramString1, paramPrincipal, paramString2, paramString3, paramString4, paramString5);
  }
  
  public String getDetailedInfo(Object paramObject)
  {
    return null;
  }
  
  public Privilege enablePrivilege(Principal paramPrincipal, Object paramObject)
  {
    PrivilegeManager localPrivilegeManager = PrivilegeManager.getPrivilegeManager();
    localPrivilegeManager.enablePrivilege(this, paramPrincipal, paramObject);
    return null;
  }
  
  public Privilege checkPrivilegeEnabled(Principal[] paramArrayOfPrincipal, Object paramObject)
  {
    PrivilegeManager localPrivilegeManager = PrivilegeManager.getPrivilegeManager();
    localPrivilegeManager.checkPrivilegeEnabled(this, paramObject);
    return null;
  }
}

/* Location:
 * Qualified Name:     netscape.security.ParameterizedTarget
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package netscape.security;

import java.net.URL;

public final class Principal
{
  public static final int CODEBASE_EXACT = 1;
  public static final int CODEBASE_REGEXP = 2;
  public static final int CERT = 3;
  public static final int CERT_FINGERPRINT = 4;
  public static final int CERT_KEY = 5;
  private int type = 3;
  private URL url = null;
  
  public Principal() {}
  
  public Principal(URL paramURL)
  {
    url = paramURL;
  }
  
  public Principal(int paramInt, String paramString)
  {
    type = paramInt;
  }
  
  public Principal(int paramInt, byte[] paramArrayOfByte)
  {
    type = paramInt;
  }
  
  public Principal(int paramInt, byte[] paramArrayOfByte, Class paramClass)
  {
    type = paramInt;
  }
  
  public boolean isCodebase()
  {
    return (isCodebaseExact()) || (isCodebaseRegexp());
  }
  
  public boolean isCodebaseExact()
  {
    return type == 1;
  }
  
  public boolean isCodebaseRegexp()
  {
    return type == 2;
  }
  
  public boolean isCert()
  {
    return type == 3;
  }
  
  public boolean isCertFingerprint()
  {
    return type == 4;
  }
  
  public String toVerboseString()
  {
    return toString();
  }
  
  public String getVendor()
  {
    return null;
  }
  
  public String toVerboseHtml()
  {
    return null;
  }
  
  public String getNickname()
  {
    return null;
  }
  
  public boolean isSystemPrincipal()
  {
    return false;
  }
  
  public static int getZigPtr(Class paramClass)
  {
    return -1;
  }
}

/* Location:
 * Qualified Name:     netscape.security.Principal
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package netscape.security;

public final class Privilege
{
  public static final int N_PERMISSIONS = 15;
  public static final int FORBIDDEN = 0;
  public static final int ALLOWED = 1;
  public static final int BLANK = 2;
  public static final int N_DURATIONS = 240;
  public static final int SCOPE = 16;
  public static final int SESSION = 32;
  public static final int FOREVER = 64;
  private int permission = 0;
  private int duration = 16;
  
  Privilege(int paramInt1, int paramInt2)
  {
    permission = paramInt1;
    duration = paramInt2;
  }
  
  public static Privilege findPrivilege(int paramInt1, int paramInt2)
  {
    return new Privilege(paramInt1, paramInt2);
  }
  
  public static int add(int paramInt1, int paramInt2)
  {
    if ((paramInt1 == 0) || (paramInt2 == 0)) {
      return 0;
    }
    if (paramInt1 == 2) {
      return paramInt2;
    }
    if (paramInt2 == 2) {
      return paramInt1;
    }
    if ((paramInt1 == 1) || (paramInt2 == 1)) {
      return 1;
    }
    return 2;
  }
  
  public static Privilege add(Privilege paramPrivilege1, Privilege paramPrivilege2)
  {
    int i = add(paramPrivilege1.getPermission(), paramPrivilege2.getPermission());
    return new Privilege(i, paramPrivilege1.getDuration());
  }
  
  public boolean samePermission(Privilege paramPrivilege)
  {
    return samePermission(paramPrivilege.getPermission());
  }
  
  public boolean samePermission(int paramInt)
  {
    return permission == paramInt;
  }
  
  public boolean sameDuration(Privilege paramPrivilege)
  {
    return sameDuration(paramPrivilege.getDuration());
  }
  
  public boolean sameDuration(int paramInt)
  {
    return duration == paramInt;
  }
  
  public boolean isAllowed()
  {
    return permission == 1;
  }
  
  public boolean isForbidden()
  {
    return permission == 0;
  }
  
  public boolean isBlank()
  {
    return permission == 2;
  }
  
  public int getPermission()
  {
    return permission;
  }
  
  public int getDuration()
  {
    return duration;
  }
  
  public boolean equals(Object paramObject)
  {
    if ((paramObject instanceof Privilege))
    {
      Privilege localPrivilege = (Privilege)paramObject;
      return (permission == localPrivilege.getPermission()) && (duration == localPrivilege.getDuration());
    }
    return false;
  }
}

/* Location:
 * Qualified Name:     netscape.security.Privilege
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package netscape.security;

import com.sun.deploy.resources.ResourceManager;
import java.io.PrintStream;

public class PrivilegeManager
{
  public static final int PROPER_SUBSET = 1;
  public static final int EQUAL = 2;
  public static final int NO_SUBSET = 3;
  public static final int SIGNED_APPLET_DBNAME = 4;
  public static final int TEMP_FILENAME = 5;
  
  public void checkPrivilegeEnabled(Target paramTarget)
    throws ForbiddenTargetException
  {}
  
  public void checkPrivilegeEnabled(Target paramTarget, Object paramObject)
    throws ForbiddenTargetException
  {}
  
  public static void enablePrivilege(String paramString)
    throws ForbiddenTargetException
  {}
  
  public void enablePrivilege(Target paramTarget)
    throws ForbiddenTargetException
  {}
  
  public void enablePrivilege(Target paramTarget, Principal paramPrincipal)
    throws ForbiddenTargetException
  {}
  
  public void enablePrivilege(Target paramTarget, Principal paramPrincipal, Object paramObject)
    throws ForbiddenTargetException
  {}
  
  public void revertPrivilege(Target paramTarget) {}
  
  public static void revertPrivilege(String paramString) {}
  
  public void disablePrivilege(Target paramTarget) {}
  
  public static void disablePrivilege(String paramString) {}
  
  public static void checkPrivilegeGranted(String paramString)
    throws ForbiddenTargetException
  {}
  
  public void checkPrivilegeGranted(Target paramTarget)
    throws ForbiddenTargetException
  {}
  
  public void checkPrivilegeGranted(Target paramTarget, Object paramObject)
    throws ForbiddenTargetException
  {}
  
  public void checkPrivilegeGranted(Target paramTarget, Principal paramPrincipal, Object paramObject)
    throws ForbiddenTargetException
  {}
  
  public boolean isCalledByPrincipal(Principal paramPrincipal, int paramInt)
  {
    printErrorMessage();
    return false;
  }
  
  public boolean isCalledByPrincipal(Principal paramPrincipal)
  {
    printErrorMessage();
    return isCalledByPrincipal(paramPrincipal, 1);
  }
  
  public static Principal getSystemPrincipal()
  {
    printErrorMessage();
    return null;
  }
  
  public static PrivilegeManager getPrivilegeManager()
  {
    printErrorMessage();
    return new PrivilegeManager();
  }
  
  public static Principal[] getMyPrincipals()
  {
    printErrorMessage();
    return null;
  }
  
  public Principal[] getClassPrincipals(Class paramClass)
  {
    printErrorMessage();
    return null;
  }
  
  public boolean hasPrincipal(Class paramClass, Principal paramPrincipal)
  {
    printErrorMessage();
    return false;
  }
  
  public int comparePrincipalArray(Principal[] paramArrayOfPrincipal1, Principal[] paramArrayOfPrincipal2)
  {
    printErrorMessage();
    return 3;
  }
  
  public boolean checkMatchPrincipal(Class paramClass, int paramInt)
  {
    printErrorMessage();
    return false;
  }
  
  public boolean checkMatchPrincipal(Principal paramPrincipal, int paramInt)
  {
    printErrorMessage();
    return false;
  }
  
  public boolean checkMatchPrincipal(Class paramClass)
  {
    printErrorMessage();
    return false;
  }
  
  public boolean checkMatchPrincipalAlways()
  {
    printErrorMessage();
    return false;
  }
  
  public Principal[] getClassPrincipalsFromStack(int paramInt)
  {
    printErrorMessage();
    return null;
  }
  
  public PrivilegeTable getPrivilegeTableFromStack()
  {
    printErrorMessage();
    return null;
  }
  
  private static void printErrorMessage()
  {
    System.err.println(ResourceManager.getMessage("liveconnect.wrong.securitymodel"));
  }
}

/* Location:
 * Qualified Name:     netscape.security.PrivilegeManager
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package netscape.security;

import java.util.Enumeration;
import java.util.Hashtable;

public class PrivilegeTable
{
  Hashtable table = new Hashtable();
  
  public int size()
  {
    return table.size();
  }
  
  public boolean isEmpty()
  {
    return table.isEmpty();
  }
  
  public Enumeration keys()
  {
    return table.keys();
  }
  
  public Enumeration elements()
  {
    return table.elements();
  }
  
  public Privilege get(Object paramObject)
  {
    return (Privilege)table.get(paramObject);
  }
  
  public Privilege get(Target paramTarget)
  {
    return get(paramTarget);
  }
  
  public Privilege put(Object paramObject, Privilege paramPrivilege)
  {
    return (Privilege)table.put(paramObject, paramPrivilege);
  }
  
  public Privilege put(Target paramTarget, Privilege paramPrivilege)
  {
    return (Privilege)table.put(paramTarget, paramPrivilege);
  }
  
  public Privilege remove(Object paramObject)
  {
    return (Privilege)table.remove(paramObject);
  }
  
  public Privilege remove(Target paramTarget)
  {
    return (Privilege)table.remove(paramTarget);
  }
  
  public void clear()
  {
    table.clear();
  }
}

/* Location:
 * Qualified Name:     netscape.security.PrivilegeTable
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package netscape.security;

public class Target
{
  private String name = null;
  private Principal prin = null;
  private String risk = null;
  private String riskColor = null;
  private String description = null;
  private String url = null;
  private Target[] targetAry = null;
  
  protected Target()
  {
    this(null, null, null, null, null, null, null);
  }
  
  public Target(String paramString, Principal paramPrincipal)
  {
    this(paramString, paramPrincipal, null, null, null, null, null);
  }
  
  public Target(String paramString)
  {
    this(paramString, null, null, null, null, null, null);
  }
  
  public Target(String paramString, Principal paramPrincipal, Target[] paramArrayOfTarget)
  {
    this(paramString, paramPrincipal, null, null, null, null, paramArrayOfTarget);
  }
  
  public Target(String paramString1, Principal paramPrincipal, String paramString2, String paramString3, String paramString4, String paramString5)
  {
    this(paramString1, paramPrincipal, paramString2, paramString3, paramString4, paramString5, null);
  }
  
  public Target(String paramString1, Principal paramPrincipal, String paramString2, String paramString3, String paramString4, String paramString5, Target[] paramArrayOfTarget)
  {
    name = paramString1;
    prin = paramPrincipal;
    risk = paramString2;
    riskColor = paramString3;
    description = paramString4;
    url = paramString5;
    targetAry = paramArrayOfTarget;
  }
  
  public final Target registerTarget()
  {
    return this;
  }
  
  public static Target findTarget(String paramString)
  {
    return new Target(paramString);
  }
  
  public static Target findTarget(String paramString, Principal paramPrincipal)
  {
    return new Target(paramString, paramPrincipal);
  }
  
  public static Target findTarget(Target paramTarget)
  {
    return paramTarget;
  }
  
  public Privilege checkPrivilegeEnabled(Principal[] paramArrayOfPrincipal, Object paramObject)
  {
    PrivilegeManager localPrivilegeManager = PrivilegeManager.getPrivilegeManager();
    localPrivilegeManager.checkPrivilegeEnabled(this, paramObject);
    return null;
  }
  
  public Privilege checkPrivilegeEnabled(Principal[] paramArrayOfPrincipal)
  {
    return checkPrivilegeEnabled(paramArrayOfPrincipal, null);
  }
  
  public Privilege checkPrivilegeEnabled(Principal paramPrincipal, Object paramObject)
  {
    PrivilegeManager localPrivilegeManager = PrivilegeManager.getPrivilegeManager();
    localPrivilegeManager.checkPrivilegeEnabled(this, paramObject);
    return null;
  }
  
  public Privilege enablePrivilege(Principal paramPrincipal, Object paramObject)
  {
    PrivilegeManager localPrivilegeManager = PrivilegeManager.getPrivilegeManager();
    localPrivilegeManager.enablePrivilege(this, paramPrincipal, paramObject);
    return null;
  }
  
  public String getRisk()
  {
    return risk;
  }
  
  public String getRiskColor()
  {
    return riskColor;
  }
  
  public String getDescription()
  {
    return description;
  }
  
  public static Target getTargetFromDescription(String paramString)
  {
    return null;
  }
  
  public String getHelpUrl()
  {
    return url;
  }
  
  public String getDetailedInfo(Object paramObject)
  {
    return null;
  }
}

/* Location:
 * Qualified Name:     netscape.security.Target
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package netscape.security;

public class UserDialogHelper
{
  public static final String targetRiskLow()
  {
    return "Risk Low";
  }
  
  public static final String targetRiskColorLow()
  {
    return "#0000FF";
  }
  
  public static final String targetRiskMedium()
  {
    return "Risk Medium";
  }
  
  public static final String targetRiskColorMedium()
  {
    return "#00FF00";
  }
  
  public static final String targetRiskHigh()
  {
    return "Risk High";
  }
  
  public static final String targetRiskColorHigh()
  {
    return "#FF0000";
  }
}

/* Location:
 * Qualified Name:     netscape.security.UserDialogHelper
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package netscape.security;

public class UserTarget
  extends Target
{
  public UserTarget() {}
  
  public UserTarget(String paramString1, Principal paramPrincipal, String paramString2, String paramString3, String paramString4, String paramString5)
  {
    super(paramString1, paramPrincipal, paramString2, paramString3, paramString4, paramString5);
  }
  
  public UserTarget(String paramString1, Principal paramPrincipal, String paramString2, String paramString3, String paramString4, String paramString5, Target[] paramArrayOfTarget)
  {
    super(paramString1, paramPrincipal, paramString2, paramString3, paramString4, paramString5, paramArrayOfTarget);
  }
  
  public Privilege enablePrivilege(Principal paramPrincipal, Object paramObject)
  {
    PrivilegeManager localPrivilegeManager = PrivilegeManager.getPrivilegeManager();
    localPrivilegeManager.enablePrivilege(this, paramPrincipal, paramObject);
    return null;
  }
}

/* Location:
 * Qualified Name:     netscape.security.UserTarget
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package sun.plugin;

import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectStreamClass;
import java.io.StreamCorruptedException;
import java.lang.reflect.Array;

class AppletObjectInputStream
  extends ObjectInputStream
{
  private ClassLoader loader;
  
  public AppletObjectInputStream(InputStream paramInputStream, ClassLoader paramClassLoader)
    throws IOException, StreamCorruptedException
  {
    super(paramInputStream);
    if (paramClassLoader == null) {
      throw new IllegalArgumentException("appletillegalargumentexception.objectinputstream");
    }
    loader = paramClassLoader;
  }
  
  private Class primitiveType(char paramChar)
  {
    switch (paramChar)
    {
    case 'B': 
      return Byte.TYPE;
    case 'C': 
      return Character.TYPE;
    case 'D': 
      return Double.TYPE;
    case 'F': 
      return Float.TYPE;
    case 'I': 
      return Integer.TYPE;
    case 'J': 
      return Long.TYPE;
    case 'S': 
      return Short.TYPE;
    case 'Z': 
      return Boolean.TYPE;
    }
    return null;
  }
  
  protected Class resolveClass(ObjectStreamClass paramObjectStreamClass)
    throws IOException, ClassNotFoundException
  {
    String str = paramObjectStreamClass.getName();
    if (str.startsWith("["))
    {
      for (int i = 1; str.charAt(i) == '['; i++) {}
      Class localClass;
      if (str.charAt(i) == 'L')
      {
        localClass = loader.loadClass(str.substring(i + 1, str.length() - 1));
      }
      else
      {
        if (str.length() != i + 1) {
          throw new ClassNotFoundException(str);
        }
        localClass = primitiveType(str.charAt(i));
      }
      int[] arrayOfInt = new int[i];
      for (int j = 0; j < i; j++) {
        arrayOfInt[j] = 0;
      }
      return Array.newInstance(localClass, arrayOfInt).getClass();
    }
    return loader.loadClass(str);
  }
}

/* Location:
 * Qualified Name:     sun.plugin.AppletObjectInputStream
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package sun.plugin;

public abstract interface AppletStatusListener
{
  public abstract void statusChanged(int paramInt);
}

/* Location:
 * Qualified Name:     sun.plugin.AppletStatusListener
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package sun.plugin;

import com.sun.deploy.config.Config;
import com.sun.deploy.util.DeploySysAction;
import sun.plugin.cache.CacheUpdateHelper;

final class AppletViewer$1
  implements DeploySysAction
{
  public Object execute()
  {
    if ((Config.getBooleanProperty("deployment.javapi.cache.update")) && (CacheUpdateHelper.updateCache()))
    {
      Config.setBooleanProperty("deployment.javapi.cache.update", false);
      Config.storeIfDirty();
    }
    return null;
  }
}

/* Location:
 * Qualified Name:     sun.plugin.AppletViewer.1
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package sun.plugin;

import java.applet.AppletContext;
import java.net.URL;
import sun.awt.AppContext;
import sun.awt.DesktopBrowse;

final class AppletViewer$2
  extends DesktopBrowse
{
  public void browse(URL paramURL)
  {
    AppletContext localAppletContext = (AppletContext)AppContext.getAppContext().get(AppletViewer.access$000());
    if (localAppletContext != null) {
      localAppletContext.showDocument(paramURL);
    }
  }
}

/* Location:
 * Qualified Name:     sun.plugin.AppletViewer.2
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package sun.plugin;

import java.security.PrivilegedAction;

class AppletViewer$3
  implements PrivilegedAction
{
  private final AppletViewer this$0;
  
  AppletViewer$3(AppletViewer paramAppletViewer) {}
  
  public Object run()
  {
    AppletViewer.access$300(this$0).setContextClassLoader(AppletViewer.access$200(this$0));
    return null;
  }
}

/* Location:
 * Qualified Name:     sun.plugin.AppletViewer.3
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package sun.plugin;

import java.applet.AppletContext;
import java.net.URL;
import java.util.Set;
import java.util.StringTokenizer;
import sun.plugin.util.ErrorDelegate;

class AppletViewer$4
  implements ErrorDelegate
{
  private final AppletViewer this$0;
  
  AppletViewer$4(AppletViewer paramAppletViewer) {}
  
  public void handleReloadApplet()
  {
    ClassLoaderInfo.clearClassLoaderCache();
    this$0.getAppletContext().showDocument(this$0.getDocumentBase());
  }
  
  public String getCodeBase()
  {
    return this$0.getCodeBase().toString();
  }
  
  public void addJarFilesToSet(Set paramSet)
  {
    String str1 = this$0.getJarFiles();
    if (str1 != null)
    {
      StringTokenizer localStringTokenizer = new StringTokenizer(str1, ",", false);
      int i = localStringTokenizer.countTokens();
      for (int j = 0; j < i; j++)
      {
        String str2 = localStringTokenizer.nextToken().trim();
        paramSet.add(str2);
      }
    }
  }
}

/* Location:
 * Qualified Name:     sun.plugin.AppletViewer.4
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package sun.plugin;

import sun.plugin.util.GrayBoxPainter;

class AppletViewer$5
  implements Runnable
{
  private final AppletViewer this$0;
  
  AppletViewer$5(AppletViewer paramAppletViewer, GrayBoxPainter paramGrayBoxPainter) {}
  
  public void run()
  {
    val$gbp.suspendPainting();
  }
}

/* Location:
 * Qualified Name:     sun.plugin.AppletViewer.5
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package sun.plugin;

import java.security.Policy;
import java.security.PrivilegedAction;

class AppletViewer$6
  implements PrivilegedAction
{
  private final AppletViewer this$0;
  
  AppletViewer$6(AppletViewer paramAppletViewer) {}
  
  public Object run()
  {
    return Policy.getPolicy();
  }
}

/* Location:
 * Qualified Name:     sun.plugin.AppletViewer.6
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package sun.plugin;

import java.security.Policy;
import java.security.PrivilegedAction;

class AppletViewer$7
  implements PrivilegedAction
{
  private final AppletViewer this$0;
  
  AppletViewer$7(AppletViewer paramAppletViewer) {}
  
  public Object run()
  {
    return Policy.getPolicy();
  }
}

/* Location:
 * Qualified Name:     sun.plugin.AppletViewer.7
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package sun.plugin;

import java.io.File;
import java.io.FilenameFilter;

class AppletViewer$8
  implements FilenameFilter
{
  private final AppletViewer this$0;
  
  AppletViewer$8(AppletViewer paramAppletViewer) {}
  
  public boolean accept(File paramFile, String paramString)
  {
    return paramString.endsWith(".jar");
  }
}

/* Location:
 * Qualified Name:     sun.plugin.AppletViewer.8
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package sun.plugin;

import java.awt.Component;
import sun.applet.AppletEvent;
import sun.applet.AppletListener;

class AppletViewer$AppletEventListener
  implements AppletListener
{
  private AppletViewer$AppletEventListener() {}
  
  public void appletStateChanged(AppletEvent paramAppletEvent)
  {
    AppletViewer localAppletViewer = (AppletViewer)paramAppletEvent.getSource();
    switch (paramAppletEvent.getID())
    {
    case 51234: 
      if (localAppletViewer != null)
      {
        Object localObject = localAppletViewer.getViewedObject();
        if ((localObject instanceof Component))
        {
          localAppletViewer.setSize(localAppletViewer.getSize());
          ((Component)localObject).setSize(localAppletViewer.getSize());
          localAppletViewer.validate();
        }
      }
      break;
    case 51236: 
      localAppletViewer.notifyLoadingDone();
    }
  }
  
  AppletViewer$AppletEventListener(AppletViewer.1 param1)
  {
    this();
  }
}

/* Location:
 * Qualified Name:     sun.plugin.AppletViewer.AppletEventListener
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package sun.plugin;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

class AppletViewer$GrayBoxListener
  implements MouseListener
{
  private String msg = null;
  private AppletViewer av;
  
  AppletViewer$GrayBoxListener(AppletViewer paramAppletViewer, String paramString)
  {
    msg = paramString;
    av = paramAppletViewer;
  }
  
  public void mouseEntered(MouseEvent paramMouseEvent)
  {
    if (msg != null) {
      av.showStatusText(msg);
    } else {
      av.showStatusText(av.getWaitingMessage());
    }
  }
  
  public void mouseExited(MouseEvent paramMouseEvent) {}
  
  public void mousePressed(MouseEvent paramMouseEvent) {}
  
  public void mouseReleased(MouseEvent paramMouseEvent) {}
  
  public void mouseClicked(MouseEvent paramMouseEvent) {}
}

/* Location:
 * Qualified Name:     sun.plugin.AppletViewer.GrayBoxListener
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package sun.plugin;

import com.sun.deploy.cache.Cache;
import com.sun.deploy.cache.DeployCacheHandler;
import com.sun.deploy.cache.MemoryCache;
import com.sun.deploy.config.Config;
import com.sun.deploy.net.cookie.DeployCookieSelector;
import com.sun.deploy.net.offline.DeployOfflineManager;
import com.sun.deploy.net.proxy.DeployProxySelector;
import com.sun.deploy.perf.DeployPerfUtil;
import com.sun.deploy.resources.ResourceManager;
import com.sun.deploy.security.DeployAuthenticator;
import com.sun.deploy.security.DeployNTLMAuthCallback;
import com.sun.deploy.services.ServiceManager;
import com.sun.deploy.ui.UIFactory;
import com.sun.deploy.util.ArrayUtil;
import com.sun.deploy.util.ConsoleHelper;
import com.sun.deploy.util.DeployAWTUtil;
import com.sun.deploy.util.DeploySysAction;
import com.sun.deploy.util.DeploySysRun;
import com.sun.deploy.util.DeploymentHooks;
import com.sun.deploy.util.Trace;
import com.sun.deploy.util.TraceLevel;
import com.sun.deploy.util.URLUtil;
import com.sun.deploy.util.UpdateCheck;
import java.applet.Applet;
import java.applet.AppletContext;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.PrintStream;
import java.lang.reflect.Method;
import java.net.Authenticator;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.net.URLConnection;
import java.security.AccessController;
import java.security.Policy;
import java.security.PrivilegedAction;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Locale;
import java.util.Properties;
import java.util.Set;
import java.util.StringTokenizer;
import javax.swing.ImageIcon;
import netscape.javascript.JSException;
import netscape.javascript.JSObject;
import sun.applet.AppletClassLoader;
import sun.applet.AppletEvent;
import sun.applet.AppletListener;
import sun.applet.AppletPanel;
import sun.awt.AppContext;
import sun.awt.DesktopBrowse;
import sun.net.www.protocol.jar.URLJarFile;
import sun.plugin.cache.CacheUpdateHelper;
import sun.plugin.cache.JarCacheUtil;
import sun.plugin.cache.JarCacheVersionException;
import sun.plugin.extension.ExtensionInstallationImpl;
import sun.plugin.javascript.JSContext;
import sun.plugin.perf.PluginRollup;
import sun.plugin.security.ActivatorSecurityManager;
import sun.plugin.security.JDK11ClassFileTransformer;
import sun.plugin.security.PluginClassLoader;
import sun.plugin.services.BrowserService;
import sun.plugin.util.ErrorDelegate;
import sun.plugin.util.GrayBoxPainter;
import sun.plugin.util.PluginSysUtil;
import sun.plugin.util.UserProfile;
import sun.plugin.viewer.context.PluginAppletContext;

public class AppletViewer
  extends AppletPanel
  implements WindowListener
{
  private GrayBoxPainter grayBoxPainter = new GrayBoxPainter(this);
  private GrayBoxListener grayBoxListener = null;
  private String customBoxMessage = null;
  private boolean dumpPerf = false;
  private boolean loading_first_time = true;
  private boolean preloading = false;
  private volatile boolean stopped = false;
  private volatile boolean stopLoadJar = false;
  private static Frame dummyFrame = new Frame();
  private static String APPCONTEXT_APPLETCONTEXT_KEY = "AppletContextKey";
  private static boolean initialized = false;
  public static String theVersion = "1.1";
  private URL documentURL = null;
  private String documentURLString = null;
  protected URL baseURL = null;
  protected HashMap atts = new HashMap();
  private ClassLoaderInfo cli = null;
  private static boolean fShowException = false;
  private AppletEventListener appletEventListener = new AppletEventListener(null);
  private Object syncInit = new Object();
  private boolean bInit = false;
  private static final String VERSION_TAG = "version=";
  private HashMap jarVersionMap = new HashMap();
  private HashMap preloadJarMap = new HashMap();
  private ArrayList newStyleJarList = new ArrayList();
  private static final String PRELOAD = "preload";
  private boolean loadingDone = false;
  private final Object syncLoading = new Object();
  private boolean docbaseInit = false;
  private Object docBaseSyncObj = new Object();
  protected boolean codeBaseInit = false;
  private String classLoaderCacheKey = null;
  private AppletStatusListener statusListener = null;
  private volatile PluginAppletContext appletContext;
  private InputStream is;
  
  public static void loadPropertiesFiles()
  {
    DeployPerfUtil.put("START - Java   - JVM - AppletViewer.loadPropert
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd