Class RemoteExecutablePolicy
java.lang.Object
com.tangosol.util.RemoteExecutablePolicy
Runtime policy for classes whose methods may be invoked on behalf of a
remote request.
- Since:
- 26.04
- Author:
- Aleks Seovic 2026.05.01
-
Method Summary
Modifier and TypeMethodDescriptionstatic RemoteExecutablePolicycurrent()Return the singleton policy.abstract voidenforce(Class<?> clz, OperationReason reason, SerializationRole role, Subject subject) Refuse the invocation ifclzis not a permitted remote execution target.booleanisExecutable(Class<?> clz) Return whether the supplied class is permitted as a remote execution target.
-
Method Details
-
current
Return the singleton policy. Sealed to the Coherence default implementation for now; extensibility ships after CACHE-01 enforcement patterns are proven.- Returns:
- the current policy
-
isExecutable
Return whether the supplied class is permitted as a remote execution target. Consults (a) the@Remote.Executableannotation and (b) the mergedSecurityConfigfor classes withexecutable="true".- Parameters:
clz- the class to inspect- Returns:
trueif the class is executable
-
enforce
public abstract void enforce(Class<?> clz, OperationReason reason, SerializationRole role, Subject subject) throws SecurityException Refuse the invocation ifclzis not a permitted remote execution target.- Parameters:
clz- the class to inspectreason- the operation categoryrole- the serialization role of the calling boundarysubject- the current subject, ornull- Throws:
SecurityException- if the class is not executable
-