Interface SecurityService


  • public interface SecurityService

    The SecurityService SPI provides support for all kinds of JavaEE related security mechanism.

    There are by default 2 basically different implementations provided by OpenWebBeans. One version performs all underlying class invocations via AccessController.doPrivileged(java.security.PrivilegedAction<T>) which is intended for use in Java EE servers. The 2nd version directly invokes the underlying Class methods without any AccessControler and is intended for scenarios where no Java security mechanism needs to be used. Since OpenWebBeans (as any other DI framework) is heavily based on reflection, using the simple NoSecurityService leads to a way better application performance.