Class PolicyRegistration

java.lang.Object
org.wildfly.security.jakarta.authz.PolicyRegistration

public class PolicyRegistration extends Object
Utility responsible for registering the Policy for a context-id.
Author:
Darran Lofthouse
  • 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 - The ClassLoader of the deployment.
      Throws:
      GeneralSecurityException
    • endContextPolicy

      public static void endContextPolicy(String contextId) throws GeneralSecurityException
      Clean up any previously initialised Policy for the context specified.
      Parameters:
      contextId - The Jakarta Authorization context to clean up.
      Throws:
      GeneralSecurityException