Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import com.sun.naming.internal.ResourceManager;
public class SecurityModule extends SecurityManager {
@Override
public void checkPackageAccess(String pkg) {
super.checkPackageAccess(pkg);
}
@Override
public void checkPackageDefinition(String pkg) {
super.checkPackageDefinition(pkg);
}
public static void main(String[] args) throws Exception {
final SecurityModule securityManager = new SecurityModule();
System.setSecurityManager(securityManager);
ResourceManager.getInitialEnvironment(null);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.