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