Class DoAsAction<T>

java.lang.Object
com.tangosol.net.security.DoAsAction<T>
All Implemented Interfaces:
PrivilegedAction<T>

public class DoAsAction<T> extends Object implements PrivilegedAction<T>
A helper class to expose the Subject.callAs(Subject, Callable) call as a privileged action.

This class bridges Coherence privileged actions onto a JAAS subject using the Java 21 API while preserving the previous unchecked-exception contract.

  • Constructor Details

    • DoAsAction

      public DoAsAction(PrivilegedAction<T> action)
      Construct a privileged action.
      Parameters:
      action - the action to run with privileges of the current subject
      Since:
      14.1.2.0.4
    • 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
  • Method Details