You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Severin Wünsch (JIRA)" <ji...@apache.org> on 2015/04/01 17:47:53 UTC

[jira] [Created] (SHIRO-531) Add getter and setter for SimpleAuthenticationInfo and SimpleAuthorizationInfo in SimpleAccount

Severin Wünsch created SHIRO-531:
------------------------------------

             Summary: Add getter and setter for SimpleAuthenticationInfo and SimpleAuthorizationInfo in SimpleAccount
                 Key: SHIRO-531
                 URL: https://issues.apache.org/jira/browse/SHIRO-531
             Project: Shiro
          Issue Type: Improvement
          Components: Authentication (log-in), Authorization (access control) , Sample Apps
    Affects Versions: 1.2.3
            Reporter: Severin Wünsch
            Priority: Minor


If you want to implement your own Account class which is extending form SimpleAccount you have no access to SimpleAuthenticationInfo and SimpleAuthorizationInfo. As these are the two classes used in nearly every function you have to completely copy the class to set your own class for authzInfo which in my case would be also extending SimpleAuthorizationInfo. 

An alternative would be to make these variables protected and not private.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)