Interface RemoteCallable
- All Superinterfaces:
Serializable
On macOS and Windows, the "Request privileges" action can spawn an additional installation process that has full admin rights.
If you have selected to elevate the main installation process, you can implement this interface and pass it to
Context.runUnelevated(RemoteCallable) to run code in the context of the original user account.
Otherwise Context.runElevated(RemoteCallable, boolean) can be used to execute something with full admin rights.
All implementations must be fully serializable.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionexecute()The method that will be executed within the requested account.
-
Method Details
-
execute
Serializable execute()The method that will be executed within the requested account.- Returns:
- You can return any serializable object that will be passed back by
Context.runUnelevated(RemoteCallable)orContext.runElevated(RemoteCallable, boolean)
-