# Re: sun.applet.AppletSecurityException

Marianne Mueller (Marianne.Mueller@Eng)
Mon, 9 Mar 1998 15:25:01 -0800 (PST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Marianne Mueller: "Re: Netscape Communicator/JDK1.1 Question..."
- Previous message: David Brownell: "Re: login to webserver"
- Maybe in reply to: Joseph J Klovance: "sun.applet.AppletSecurityException"

    Date: Mon, 9 Mar 1998 15:25:01 -0800 (PST)

    From: Marianne Mueller <Marianne.Mueller@Eng>

    Subject: Re: sun.applet.AppletSecurityException

    To: java-security@web4.javasoft.com, jklovanc@csr.csc.UVic.CA

> What is a sun.applet.AppletSecurityException. I can not find the
> description anywhere.

It's a subclass of java.lang.SecurityException which in turn
extends java.lang.RuntimeException.

>From the javadoc documentation (see
http://java.sun.com/products/jdk/1.1/docs/api/packages.html),
RuntimeException is defined

=============================

public class RuntimeException
extends Exception

RuntimeException is the superclass of those exceptions that can be thrown during
the normal operation of the Java Virtual Machine.

A method is not required to declare in its throws clause any subclasses of
RuntimeException that might be thrown during the execution of the method
but not caught.

=============================

and SecurityException is defined

=============================

public class SecurityException
extends RuntimeException

Thrown by the security manager to indicate a security violation.

==============================

Generally when an exception is thrown, the code that throws it also
includes some string that provides additional debugging information.
In the case of AppletSecurityException, the AppletSecurity manager
throws this exception when untrusted applets attempt to do something
outside the "sandbox". The AppletSecurity manager is part of the
appletviewer (and HotJava also has its own version, as well as the
other Java-enabled browsers.) There is more info on the applet
sandbox on http://java.sun.com/security and http://java.sun.com/sfaq
although admittedly that info is getting to be pretty old and needs
to be updated.

Marianne

- Next message: Marianne Mueller: "Re: Netscape Communicator/JDK1.1 Question..."
- Previous message: David Brownell: "Re: login to webserver"
- Maybe in reply to: Joseph J Klovance: "sun.applet.AppletSecurityException"