Class PolicyRegistration
java.lang.Object
org.wildfly.security.jakarta.authz.PolicyRegistration
Utility responsible for registering the Policy for a context-id.
- Author:
- Darran Lofthouse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbeginContextPolicy(String contextId, ClassLoader deploymentClassLoader) Initialise the Policy for the specified context.static voidendContextPolicy(String contextId) Clean up any previously initialised Policy for the context specified.
-
Constructor Details
-
PolicyRegistration
public PolicyRegistration()
-
-
Method Details
-
beginContextPolicy
public static void beginContextPolicy(String contextId, ClassLoader deploymentClassLoader) throws GeneralSecurityException Initialise the Policy for the specified context.- Parameters:
contextId- The Jakarta Authorization context id being processed.deploymentClassLoader- TheClassLoaderof the deployment.- Throws:
GeneralSecurityException
-
endContextPolicy
Clean up any previously initialised Policy for the context specified.- Parameters:
contextId- The Jakarta Authorization context to clean up.- Throws:
GeneralSecurityException
-