Class AuthorizationPreInitializer

java.lang.Object
cloud.piranha.extension.exousia.AuthorizationPreInitializer
All Implemented Interfaces:
jakarta.servlet.ServletContainerInitializer

public class AuthorizationPreInitializer extends Object implements jakarta.servlet.ServletContainerInitializer
The Exousia initializer.
Author:
Arjan Tijms
  • Field Details

    • AUTHZ_SERVICE

      public static final String AUTHZ_SERVICE
      Defines the constant for the auth service attribute.
    • AUTHZ_FACTORY_CLASS

      public static final String AUTHZ_FACTORY_CLASS
      Defines the constant for the auth factory class attribute.
    • AUTHZ_POLICY_CLASS

      public static final String AUTHZ_POLICY_CLASS
      Defines the constant fore the auth policy class attribute.
    • UNCHECKED_PERMISSIONS

      public static final String UNCHECKED_PERMISSIONS
      Defines the constant for the unchecked permissions attribute.
    • PERROLE_PERMISSIONS

      public static final String PERROLE_PERMISSIONS
      Defines the constants for the per-role permissions attribute.
    • CONSTRAINTS

      public static final String CONSTRAINTS
      Defines the constant for the security constraints attribute.
    • SECURITY_ELEMENTS

      public static final String SECURITY_ELEMENTS
      Defines the constant for the security elements attribute.
    • SECURITY_ANNOTATIONS

      public static final String SECURITY_ANNOTATIONS
      Defines the constant for the security annotations attribute.
      See Also:
  • Constructor Details

    • AuthorizationPreInitializer

      public AuthorizationPreInitializer()
  • Method Details

    • onStartup

      public void onStartup(Set<Class<?>> classes, jakarta.servlet.ServletContext servletContext) throws jakarta.servlet.ServletException
      Initialize Exousia
      Specified by:
      onStartup in interface jakarta.servlet.ServletContainerInitializer
      Parameters:
      classes - the classes.
      servletContext - the Servlet context.
      Throws:
      jakarta.servlet.ServletException - when a Servlet error occurs.