Sha256: fbee5e5a00837bacf17932930ff57f42e6dc1667a7845c57a33d9c7fbebfed92
Contents?: true
Size: 488 Bytes
Versions: 152
Compression:
Stored size: 488 Bytes
Contents
package thread_safe; import java.security.Permission; import java.util.ArrayList; import java.util.List; public class SecurityManager extends java.lang.SecurityManager { private final List<Permission> deniedPermissions = new ArrayList<Permission>(); @Override public void checkPermission(Permission p) { if (deniedPermissions.contains(p)) { throw new SecurityException("Denied!"); } } public void deny(Permission p) { deniedPermissions.add(p); } }
Version data entries
152 entries across 144 versions & 47 rubygems