Class DoAsAction<T>
java.lang.Object
com.tangosol.net.security.DoAsAction<T>
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionDoAsAction(PrivilegedAction<T> action) Construct a privileged action.DoAsAction(Subject subject, PrivilegedAction<T> action) Construct a privileged action. -
Method Summary
-
Constructor Details
-
DoAsAction
Construct a privileged action.- Parameters:
action- the action to run with privileges of the current subject- Since:
- 14.1.2.0.4
-
DoAsAction
Construct a privileged action.- Parameters:
subject- the subject that the specified action will run asaction- the action to run with privileges of the specified subject
-
-
Method Details
-
run
- Specified by:
runin interfacePrivilegedAction<T>
-