Class GrantLayer

java.lang.Object
io.jenkins.plugins.batchcontrol.security.GrantLayer

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class GrantLayer extends Object
Entry points to the grant layer for code outside this package (D-35b, D-35c).
  • Method Details

    • isGrantLayered

      public static boolean isGrantLayered(@CheckForNull AuthorizationStrategy strategy)
      Whether strategy is a Batch Control strategy (layers grants over its parent).
    • hasPermissionWithoutGrants

      public static boolean hasPermissionWithoutGrants(@NonNull AccessControlled object, @NonNull org.springframework.security.core.Authentication a, @NonNull Permission permission)
      Whether a holds permission on object without any grant: the answer of the installed strategy alone, with every grant layer switched off on this thread for the duration of the check (inherited ACLs included).