Class JaccWebConstraintsTranslator


  • public class JaccWebConstraintsTranslator
    extends Object
    This class is used for translating security constrains from web.xml and corresponding annotations into JACC permissions, and writing this to the pluggable PolicyConfiguration (which is EE standard permission repository).
    Author:
    Harpreet Singh, Jean-Francois Arcand, Ron Monzillo, Arjan Tijms (refactoring)
    • Method Detail

      • translateConstraintsToPermissions

        public static void translateConstraintsToPermissions​(WebBundleDescriptor webBundleDescriptor,
                                                             jakarta.security.jacc.PolicyConfiguration policyConfiguration)
                                                      throws jakarta.security.jacc.PolicyContextException
        Translate the security constraints presents in the given WebBundleDescriptor to JACC permissions and store those in the given PolicyConfiguration.
        Parameters:
        webBundleDescriptor - the source of the security constraints
        policyConfiguration - the target of the security permissions
        Throws:
        jakarta.security.jacc.PolicyContextException