Package com.tnsai.security
Class AccessGate
java.lang.Object
com.tnsai.security.AccessGate
Shared dispatch entry to SecurityEnforcer. Policy evaluation remains in the existing provider.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tcall(AccessRequest request, Callable<T> body) Checked execution namespace for cache isolation.check(String name, ActionType type, Object target, Method method, ExecutionRule dynamicRule, AgentPrincipal principal, AuthorityScope authority) voidconfigure(AccessSubject agent, Function<Object, String> targetSystem) Bind the actual host agent, independently of its executor principal.static voidrequireSameBinding(AccessRequest expected, AccessRequest actual)
-
Constructor Details
-
AccessGate
-
-
Method Details
-
configure
Bind the actual host agent, independently of its executor principal. -
call
Checked execution namespace for cache isolation. Every dispatch still reauthorizes.- Throws:
Exception
-
requireSameBinding
-
check
public AccessRequest check(String name, ActionType type, Object target, Method method, ExecutionRule dynamicRule, AgentPrincipal principal, AuthorityScope authority)
-