]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/SystemExecutionService.java
b67eb27b1446bad9275e11b2ff103f555c518052
1 package org
.argeo
.security
;
3 import java
.util
.concurrent
.Executor
;
6 * Allows to execute code authenticated as a system user (that is not a real
7 * person). The {@link Executor} interface interface is not used directly in
8 * order to allow future extension of this interface and to simplify its
9 * publication (e.g. as an OSGi service) and interception.
11 public interface SystemExecutionService
extends Executor
{
13 * Executes this Runnable within a system authenticated context.
14 * Implementations should make sure that this method is properly secured via
15 * Java permissions since it could access to everything without credentials.
17 public void execute(Runnable runnable
);