Runs the specified method in the specified security context on the current thread.
securityContext The security context to set.callback The delegate that represents the method to run in the specified security context.state The object to pass to the callback method.
The security context for the current thread is returned to its previous state when the method call is complete.