Class RemoteExecutablePolicy

java.lang.Object
com.tangosol.util.RemoteExecutablePolicy

public abstract class RemoteExecutablePolicy extends Object
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 Details

    • current

      public static RemoteExecutablePolicy 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

      public boolean isExecutable(Class<?> clz)
      Return whether the supplied class is permitted as a remote execution target. Consults (a) the @Remote.Executable annotation and (b) the merged SecurityConfig for classes with executable="true".
      Parameters:
      clz - the class to inspect
      Returns:
      true if the class is executable
    • enforce

      public abstract void enforce(Class<?> clz, OperationReason reason, SerializationRole role, Subject subject) throws SecurityException
      Refuse the invocation if clz is not a permitted remote execution target.
      Parameters:
      clz - the class to inspect
      reason - the operation category
      role - the serialization role of the calling boundary
      subject - the current subject, or null
      Throws:
      SecurityException - if the class is not executable