Code example for Permission

Methods: getName

0
 * @author Brian Wing Shun Chan 
 */ 
public class PortalSecurityManager extends SecurityManager {
 
	public void checkPermission(Permission permission) {
		if (permission.getName().equals(_PERMISSION_EXIT_VM)) {
			Thread.dumpStack();
		} 
	} 
 
	public void checkPermission(Permission permission, Object context) {
	} 
 
	private static final String _PERMISSION_EXIT_VM = "exitVM";
 
}