Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-698

Rework the constructor exclusion logic for authentication rules and configurations

    XMLWordPrintable

Details

    • Medium

    Description

      The current authentication rule and configuration classes are designed to ensure that mutually incompatible rules and configurations cannot coexist. However the implementation is applied a bit erratically. There may be problems with commutatively applying checks. Some checks may be missing or extraneous.

      We need a new approach where the mutual exclusion set is somehow enforced centrally. One option is to have literal sets, and each class that is a member of one or more sets must remove all other handlers that are also within the set(s). A predicate could be used to make this efficient by only sweeping the list one time, in contrast to the current mechanism which sweeps the list once per exclusive type.

      Another option is to have a marker interface for each capability, and to remove all peers with the same capability. A predicate can also be used in this case.

      Attachments

        Activity

          People

            dlloyd@redhat.com David Lloyd
            dlloyd@redhat.com David Lloyd
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: