Question: A user thread of a GUI application needs to perform certain security sensitve operations upon receiving system events. For this purpose, a call back handler has been registered with the system by the user thread based upon inputs from the GUI. The operations should be executed only if the user has appropriate permissions as per the security policy.
The following code shows the call back handler:
public class ProtectedCallbackHandler implements Runnable{
   final String action;
   public ProtectedCallbackHandler(String action){
       this.action = action;
   }
   public void run(){
   AccessController.doPrivileged(
       new PrivilegedAction() {
           public Void run() {
               //Do sensitive operations based upon action value
               return null;
           }
       });          Â
   }
}
Identify correct statements.
Select 1 option(s)