trivial AccessController implementation

This commit is contained in:
Zsombor 2008-07-13 18:46:27 -06:00 committed by Joel Dice
parent 4ecce8286f
commit 074f1a3853
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,15 @@
package java.security;
/**
* No real access control is implemented here.
*
* @author zsombor
*
*/
public class AccessController {
public static Object doPrivileged (PrivilegedAction action) {
return action.run();
}
}

View File

@ -0,0 +1,7 @@
package java.security;
public interface PrivilegedAction<T> {
T run();
}