mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
trivial AccessController implementation
This commit is contained in:
parent
4ecce8286f
commit
074f1a3853
15
classpath/java/security/AccessController.java
Normal file
15
classpath/java/security/AccessController.java
Normal 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();
|
||||
}
|
||||
|
||||
}
|
7
classpath/java/security/PrivilegedAction.java
Normal file
7
classpath/java/security/PrivilegedAction.java
Normal file
@ -0,0 +1,7 @@
|
||||
package java.security;
|
||||
|
||||
public interface PrivilegedAction<T> {
|
||||
|
||||
T run();
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user