Class PolicyLoader


  • @Service
    @Singleton
    public class PolicyLoader
    extends Object
    Loads the default JACC Policy Provider into the system.
    Author:
    Harpreet Singh, Jyri J. Virkki
    • Constructor Detail

      • PolicyLoader

        public PolicyLoader()
    • Method Detail

      • loadPolicy

        public void loadPolicy()
        Attempts to install the JACC policy-provider (authorization module)

        The policy-provider element in domain.xml is consulted for the class to use.

        Note that if the jakarta.security.jacc.policy.provider system property is set it will override the domain.xml configuration. This will normally not be the case in Payara.

        The J2EE 1.3 property jakarta.security.jacc.auth.policy.provider is checked as a last resort. It should not be set in J2EE 1.4.