You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/01/18 22:58:34 UTC
[jira] [Commented] (JENA-850) The return type of the
SecurityEvaluator.getPrincipal() is to restrictive.
[ https://issues.apache.org/jira/browse/JENA-850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14281979#comment-14281979 ]
ASF subversion and git services commented on JENA-850:
------------------------------------------------------
Commit fa456a2f3cf630d24d0215020adac37b2133cd65 in jena's branch refs/heads/master from [~claude@xenei.org]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=fa456a2 ]
changed Principal to be Object to fix JENA-850
> The return type of the SecurityEvaluator.getPrincipal() is to restrictive.
> --------------------------------------------------------------------------
>
> Key: JENA-850
> URL: https://issues.apache.org/jira/browse/JENA-850
> Project: Apache Jena
> Issue Type: Bug
> Components: Security
> Affects Versions: Jena 2.12.1
> Environment: All
> Reporter: Claude Warren
> Assignee: Claude Warren
> Labels: permissions, security
>
> SecurityEvaluator.getPrincipal() is requried to be used in all other SecurityEvaluator methods, however, the return type "Principal" is to restrictive for some implementations.
> The Principal is to be retrieved from the Authorization system, and in general may be a Principal, but in some cases, as in when integrating with Apache Shiro, it needs to be a differnt object type.
> The probable fix is to have getPrincipal() return a generic Object.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)