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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Francois Papon (Jira)

    [ https://issues.apache.org/jira/browse/SHIRO-531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17019685#comment-17019685 ]

Benjamin Marwell commented on SHIRO-531:
----------------------------------------

Hello [~Sk!d], do you still need this functionality? I just browsed the Jira for old issues and could create a PR, if you need it.

Do you have a use case?

> 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
>              Labels: improvement
>   Original Estimate: 2m
>  Remaining Estimate: 2m
>
> 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
(v8.3.4#803005)