Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-86

Add Builder design pattern for arbitrary Subject construction

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • Subject
    • None

    Description

      The latest SecurityManager API allows Subject construction via a Map context - the context is then delegated to a SubjectFactory which uses it to build a Subject instance.

      It would be nice to have a Builder implementation that builds up the context map automatically based on method invocations and in turn calls the SecurityManager method. This allows end-users to construct any Subject instance arbitrarily without knowing the context Key values required or knowledge of underlying SubjectFactory implementations.

      Other parts of Shiro's own code can utilize this Builder implementation directly to simplify code (e.g. ShiroFilter).

      Attachments

        Activity

          People

            lhazlewood Les Hazlewood
            lhazlewood Les Hazlewood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: