< prev index next >
src/java.desktop/share/classes/sun/applet/AppletSecurity.java
Print this page
*** 258,278 ****
}
}
/**
! * Throws a <code>SecurityException</code> if the
* calling thread is not allowed to access the package specified by
* the argument.
* <p>
! * This method is used by the <code>loadClass</code> method of class
* loaders.
* <p>
! * The <code>checkPackageAccess</code> method for class
! * <code>SecurityManager</code> calls
! * <code>checkPermission</code> with the
! * <code>RuntimePermission("accessClassInPackage."+ pkgname)</code>
* permission.
*
* @param pkgname the package name.
* @exception SecurityException if the caller does not have
* permission to access the specified package.
--- 258,278 ----
}
}
/**
! * Throws a {@code SecurityException} if the
* calling thread is not allowed to access the package specified by
* the argument.
* <p>
! * This method is used by the {@code loadClass} method of class
* loaders.
* <p>
! * The {@code checkPackageAccess} method for class
! * {@code SecurityManager} calls
! * {@code checkPermission} with the
! * {@code RuntimePermission("accessClassInPackage."+ pkgname)}
* permission.
*
* @param pkgname the package name.
* @exception SecurityException if the caller does not have
* permission to access the specified package.
*** 300,311 ****
}
/**
* Tests if a client can get access to the AWT event queue.
* <p>
! * This method calls <code>checkPermission</code> with the
! * <code>AWTPermission("accessEventQueue")</code> permission.
*
* @since 1.1
* @exception SecurityException if the caller does not have
* permission to access the AWT event queue.
*/
--- 300,311 ----
}
/**
* Tests if a client can get access to the AWT event queue.
* <p>
! * This method calls {@code checkPermission} with the
! * {@code AWTPermission("accessEventQueue")} permission.
*
* @since 1.1
* @exception SecurityException if the caller does not have
* permission to access the AWT event queue.
*/
< prev index next >