Add Builder design pattern for arbitrary Subject construction
-------------------------------------------------------------

                 Key: SHIRO-86
                 URL: https://issues.apache.org/jira/browse/SHIRO-86
             Project: Shiro
          Issue Type: Improvement
          Components: Subject
    Affects Versions: 1.0
            Reporter: Les Hazlewood
            Assignee: Les Hazlewood
             Fix For: 1.0


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).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to