Class DoAsAction<T>

    • Constructor Detail

      • DoAsAction

        public DoAsAction​(PrivilegedAction<T> action)
        Construct a privileged action.
        Parameters:
        action - the action to run with privileges of the current subject
      • DoAsAction

        public DoAsAction​(Subject subject,
                          PrivilegedAction<T> action)
        Construct a privileged action.
        Parameters:
        subject - the subject that the specified action will run as
        action - the action to run with privileges of the specified subject