public interface PrivilegedExecutor
| Modifier and Type | Method and Description | 
|---|---|
<T> T | 
execute(PrivilegedAction<T> action)
This method is used to execute a privileged action, the implementor can
 chose to execute the action using the appropriate privileges 
 | 
<T> T | 
execute(PrivilegedExceptionAction<T> action)
This method is used to execute a privileged action, the implementor can
 chose to execute the action using the appropriate privileges 
 | 
<T> T execute(PrivilegedExceptionAction<T> action) throws Exception
T - The return type of the actionaction - A PrivilegedExceptionAction to perform as the desired userException<T> T execute(PrivilegedAction<T> action)
T - The return type of the actionaction - A PrivilegedAction to perform as the desired userCopyright © 2009-2022 Apache Software Foundation. All Rights Reserved.