Package cloud.piranha.extension.exousia
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 Summary
Modifier and TypeFieldDescriptionstatic final String
Defines the constant for the auth factory class attribute.static final String
Defines the constant fore the auth policy class attribute.static final String
Defines the constant for the auth service attribute.static final String
Defines the constant for the security constraints attribute.static final String
Defines the constants for the per-role permissions attribute.static final String
Defines the constant for the security annotations attribute.static final String
Defines the constant for the security elements attribute.static final String
Defines the constant for the unchecked permissions attribute. -
Constructor Summary
-
Method Summary
-
Field Details
-
AUTHZ_SERVICE
Defines the constant for the auth service attribute. -
AUTHZ_FACTORY_CLASS
Defines the constant for the auth factory class attribute. -
AUTHZ_POLICY_CLASS
Defines the constant fore the auth policy class attribute. -
UNCHECKED_PERMISSIONS
Defines the constant for the unchecked permissions attribute. -
PERROLE_PERMISSIONS
Defines the constants for the per-role permissions attribute. -
CONSTRAINTS
Defines the constant for the security constraints attribute. -
SECURITY_ELEMENTS
Defines the constant for the security elements attribute. -
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 interfacejakarta.servlet.ServletContainerInitializer
- Parameters:
classes
- the classes.servletContext
- the Servlet context.- Throws:
jakarta.servlet.ServletException
- when a Servlet error occurs.
-