test_class.declarator: DENY = "deny"
test_class.modifier: private static final
test_class.original_string: private static final String DENY = "deny";
test_class.type: String
test_class.var_name: DENY
test_class.declarator: ALLOW = "allow"
test_class.modifier: private static final
test_class.original_string: private static final String ALLOW = "allow";
test_class.type: String
test_class.var_name: ALLOW
test_class.declarator: bitsProvider
test_class.modifier: private
test_class.original_string: private PrivilegeBitsProvider bitsProvider;
test_class.type: PrivilegeBitsProvider
test_class.var_name: bitsProvider
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/UtilTest.java
test_class.identifier: UtilTest
test_class.superclass: extends AbstractSecurityTest
test_case.body: @Test
      public void testGenerateName2() throws AccessControlException {
          ACE ace = new TestAce(false);
          String name = Util.generateAceName(ace, 0);
  
          assertTrue(name.startsWith(DENY));
          assertEquals(DENY, name);
          assertEquals(name, Util.generateAceName(ace, 0));
  
          name = Util.generateAceName(ace, 2);
          assertTrue(name.startsWith(DENY));
          assertEquals(DENY + 2, name);
          assertEquals(name, Util.generateAceName(ace, 2));
      }
test_case.class_method_signature: UtilTest.testGenerateName2()
test_case.full_signature: @Test public void testGenerateName2()
test_case.identifier: testGenerateName2
test_case.invocations: generateAceName assertTrue startsWith assertEquals assertEquals generateAceName generateAceName assertTrue startsWith assertEquals assertEquals generateAceName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGenerateName2()
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/Util.java
focal_class.identifier: Util
focal_class.interfaces: implements AccessControlConstants
focal_class.class_method_signature: Util.Util()
focal_class.full_signature: private  Util()
focal_class.identifier: Util
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  Util()
focal_class.class_method_signature: Util.checkValidPrincipal(@Nullable Principal principal,
                                      @NotNull PrincipalManager principalManager)
focal_class.full_signature: static void checkValidPrincipal(@Nullable Principal principal,
                                      @NotNull PrincipalManager principalManager)
focal_class.identifier: checkValidPrincipal
focal_class.modifiers: static
focal_class.parameters: (@Nullable Principal principal,
                                      @NotNull PrincipalManager principalManager)
focal_class.return: void
focal_class.signature: void checkValidPrincipal(@Nullable Principal principal,
                                      @NotNull PrincipalManager principalManager)
focal_class.class_method_signature: Util.checkValidPrincipal(@Nullable Principal principal,
                                         @NotNull PrincipalManager principalManager,
                                         int importBehavior)
focal_class.full_signature: static boolean checkValidPrincipal(@Nullable Principal principal,
                                         @NotNull PrincipalManager principalManager,
                                         int importBehavior)
focal_class.identifier: checkValidPrincipal
focal_class.modifiers: static
focal_class.parameters: (@Nullable Principal principal,
                                         @NotNull PrincipalManager principalManager,
                                         int importBehavior)
focal_class.return: boolean
focal_class.signature: boolean checkValidPrincipal(@Nullable Principal principal,
                                         @NotNull PrincipalManager principalManager,
                                         int importBehavior)
focal_class.class_method_signature: Util.checkValidPrincipals(@Nullable Set<Principal> principals,
                                       @NotNull PrincipalManager principalManager)
focal_class.full_signature: static void checkValidPrincipals(@Nullable Set<Principal> principals,
                                       @NotNull PrincipalManager principalManager)
focal_class.identifier: checkValidPrincipals
focal_class.modifiers: static
focal_class.parameters: (@Nullable Set<Principal> principals,
                                       @NotNull PrincipalManager principalManager)
focal_class.return: void
focal_class.signature: void checkValidPrincipals(@Nullable Set<Principal> principals,
                                       @NotNull PrincipalManager principalManager)
focal_class.class_method_signature: Util.isValidPolicy(@Nullable String oakPath, @NotNull AccessControlPolicy policy)
focal_class.full_signature: static boolean isValidPolicy(@Nullable String oakPath, @NotNull AccessControlPolicy policy)
focal_class.identifier: isValidPolicy
focal_class.modifiers: static
focal_class.parameters: (@Nullable String oakPath, @NotNull AccessControlPolicy policy)
focal_class.return: boolean
focal_class.signature: boolean isValidPolicy(@Nullable String oakPath, @NotNull AccessControlPolicy policy)
focal_class.class_method_signature: Util.checkValidPolicy(@Nullable String oakPath, @NotNull AccessControlPolicy policy)
focal_class.full_signature: static void checkValidPolicy(@Nullable String oakPath, @NotNull AccessControlPolicy policy)
focal_class.identifier: checkValidPolicy
focal_class.modifiers: static
focal_class.parameters: (@Nullable String oakPath, @NotNull AccessControlPolicy policy)
focal_class.return: void
focal_class.signature: void checkValidPolicy(@Nullable String oakPath, @NotNull AccessControlPolicy policy)
focal_class.class_method_signature: Util.isAccessControlled(@Nullable String oakPath, @NotNull Tree tree,
                                        @NotNull ReadOnlyNodeTypeManager ntMgr)
focal_class.full_signature: static boolean isAccessControlled(@Nullable String oakPath, @NotNull Tree tree,
                                        @NotNull ReadOnlyNodeTypeManager ntMgr)
focal_class.identifier: isAccessControlled
focal_class.modifiers: static
focal_class.parameters: (@Nullable String oakPath, @NotNull Tree tree,
                                        @NotNull ReadOnlyNodeTypeManager ntMgr)
focal_class.return: boolean
focal_class.signature: boolean isAccessControlled(@Nullable String oakPath, @NotNull Tree tree,
                                        @NotNull ReadOnlyNodeTypeManager ntMgr)
focal_class.class_method_signature: Util.isACE(@NotNull Tree tree, @NotNull ReadOnlyNodeTypeManager ntMgr)
focal_class.full_signature: static boolean isACE(@NotNull Tree tree, @NotNull ReadOnlyNodeTypeManager ntMgr)
focal_class.identifier: isACE
focal_class.modifiers: static
focal_class.parameters: (@NotNull Tree tree, @NotNull ReadOnlyNodeTypeManager ntMgr)
focal_class.return: boolean
focal_class.signature: boolean isACE(@NotNull Tree tree, @NotNull ReadOnlyNodeTypeManager ntMgr)
focal_class.class_method_signature: Util.getMixinName(@Nullable String oakPath)
focal_class.full_signature: @NotNull static String getMixinName(@Nullable String oakPath)
focal_class.identifier: getMixinName
focal_class.modifiers: @NotNull static
focal_class.parameters: (@Nullable String oakPath)
focal_class.return: String
focal_class.signature: String getMixinName(@Nullable String oakPath)
focal_class.class_method_signature: Util.getAclName(@Nullable String oakPath)
focal_class.full_signature: @NotNull static String getAclName(@Nullable String oakPath)
focal_class.identifier: getAclName
focal_class.modifiers: @NotNull static
focal_class.parameters: (@Nullable String oakPath)
focal_class.return: String
focal_class.signature: String getAclName(@Nullable String oakPath)
focal_class.class_method_signature: Util.generateAceName(@NotNull ACE ace, int index)
focal_class.full_signature: @NotNull static String generateAceName(@NotNull ACE ace, int index)
focal_class.identifier: generateAceName
focal_class.modifiers: @NotNull static
focal_class.parameters: (@NotNull ACE ace, int index)
focal_class.return: String
focal_class.signature: String generateAceName(@NotNull ACE ace, int index)
focal_class.class_method_signature: Util.getImportBehavior(AuthorizationConfiguration config)
focal_class.full_signature: static int getImportBehavior(AuthorizationConfiguration config)
focal_class.identifier: getImportBehavior
focal_class.modifiers: static
focal_class.parameters: (AuthorizationConfiguration config)
focal_class.return: int
focal_class.signature: int getImportBehavior(AuthorizationConfiguration config)
focal_method.body: @NotNull
      static String generateAceName(@NotNull ACE ace, int index) {
          String hint = (ace.isAllow()) ? "allow" : "deny";
          if (index == 0) {
              return hint;
          } else {
              return hint + index;
          }
      }
focal_method.class_method_signature: Util.generateAceName(@NotNull ACE ace, int index)
focal_method.full_signature: @NotNull static String generateAceName(@NotNull ACE ace, int index)
focal_method.identifier: generateAceName
focal_method.invocations: isAllow
focal_method.modifiers: @NotNull static
focal_method.parameters: (@NotNull ACE ace, int index)
focal_method.return: String
focal_method.signature: String generateAceName(@NotNull ACE ace, int index)