Class PrivilegedOperations
java.lang.Object
org.apache.sshd.common.util.security.PrivilegedOperations
A wrapper around AccessController so that our code can work on JREs that do or do not have it.
- Author:
- Apache MINA SSHD Project
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddoPrivileged(Runnable action) static <T> TdoPrivileged(Callable<? extends T> action) static <T> TdoPrivilegedConditional(Callable<? extends T> action) static ThreadGroup
-
Method Details
-
getPrivilegedThreadGroup
-
doPrivileged
-
doPrivileged
public static <T> T doPrivileged(Callable<? extends T> action) throws PrivilegedOperations.PrivilegeException -
doPrivilegedConditional
public static <T> T doPrivilegedConditional(Callable<? extends T> action) throws PrivilegedOperations.PrivilegeException
-