java.security.AccessController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dragome-js-jre Show documentation
Show all versions of dragome-js-jre Show documentation
Dragome SDK module: js-jre
The newest version!
package java.security;
public class AccessController
{
private static AccessControlContext context= new AccessControlContext();
public static AccessControlContext getContext()
{
return context;
}
public static T doPrivileged(PrivilegedAction action)
{
return action.run();
}
public static T doPrivileged(PrivilegedAction privilegedAction, AccessControlContext acc)
{
return privilegedAction.run();
}
}