Class PermissionSecurityChecks.PermissionSecurityChecksBuilder

    • Constructor Detail

      • PermissionSecurityChecksBuilder

        public PermissionSecurityChecksBuilder​(SecurityCheckRecorder recorder)
    • Method Detail

      • createPermissionPredicates

        PermissionSecurityChecks.PermissionSecurityChecksBuilder createPermissionPredicates()
        Creates predicate for each secured method. Predicates are cached if possible. What we call predicate here is combination of (possibly computed) Permissions joined with logical operators 'AND' or 'OR'. For example, combination of following 2 annotation instances:
         @PermissionsAllowed({"createResource", "createAll"})
         @PermissionsAllowed({"updateResource", "updateAll"})
         public void createOrUpdate() {
              ...
         }
         
        leads to (pseudocode): (createResource OR createAll) AND (updateResource OR updateAll)
        Returns:
        PermissionSecurityChecksBuilder
      • gatherPermissionsAllowedAnnotations

        PermissionSecurityChecks.PermissionSecurityChecksBuilder gatherPermissionsAllowedAnnotations​(List<org.jboss.jandex.AnnotationInstance> instances,
                                                                                                     Map<org.jboss.jandex.MethodInfo,​org.jboss.jandex.AnnotationInstance> alreadyCheckedMethods,
                                                                                                     Map<org.jboss.jandex.ClassInfo,​org.jboss.jandex.AnnotationInstance> alreadyCheckedClasses)