Spring Security
  1. Spring Security
  2. SEC-1231

Authentication.getAuthorities should be of type Collection<GrantedAuthority> and not List<GrantedAuthority>

    Details

    • Type: Refactoring Refactoring
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0 M2
    • Fix Version/s: 3.0.0 RC1
    • Component/s: Core
    • Labels:
      None

      Description

      Currently, the Authentication Interfaces uses a List for the Granted Authorities, but in most cases, we just wanted to know, if the user has a certain authority. Therefore a set would be better for this, but to leave the option open, that people can also use a List in their custom Authentication Providers, we could just use Collection in the Interface.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Luke Taylor
            Reporter:
            Mike Wiesner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: