You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2011/03/14 17:44:29 UTC

[jira] Created: (OWB-545) Cleanup our SecurityManager integration

Cleanup our SecurityManager integration
---------------------------------------

                 Key: OWB-545
                 URL: https://issues.apache.org/jira/browse/OWB-545
             Project: OpenWebBeans
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0.0
            Reporter: Mark Struberg
            Assignee: Mark Struberg
             Fix For: 1.1.0


We currently sometimes uses static SecurityUtil methods to perform doPrivileged calls and sometimes just go straight to the underlying methods. This should get cleaned up and instead of the SecurityUtil, we shall provide such methods via a plugable SecurityService.

This would allow us to implement a SimpleSecurityService which doesn't make use of the SecurityManager and therefore will increase the speed of OWB about 50% compared to always using the SecurityManager (which we currently do _not_ do in hotspot areas because of the performance impact).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (OWB-545) Cleanup our SecurityManager integration

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006712#comment-13006712 ] 

Mark Struberg commented on OWB-545:
-----------------------------------

Initial implementation committed in r1081597.
This shows a pretty heavy speed increase ;)

Next step is to move the code from our SecurityUtil into a ManagedSecurityService for use in EE servers.

> Cleanup our SecurityManager integration
> ---------------------------------------
>
>                 Key: OWB-545
>                 URL: https://issues.apache.org/jira/browse/OWB-545
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.0
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 1.1.0
>
>
> We currently sometimes uses static SecurityUtil methods to perform doPrivileged calls and sometimes just go straight to the underlying methods. This should get cleaned up and instead of the SecurityUtil, we shall provide such methods via a plugable SecurityService.
> This would allow us to implement a SimpleSecurityService which doesn't make use of the SecurityManager and therefore will increase the speed of OWB about 50% compared to always using the SecurityManager (which we currently do _not_ do in hotspot areas because of the performance impact).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (OWB-545) Cleanup our SecurityManager integration

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006838#comment-13006838 ] 

Mark Struberg commented on OWB-545:
-----------------------------------

I've now also committed the ManagedSecurityService which covers all the doPriviliged stuff for use in EE servers. Next step is to move all invocations of SecurityUtil to the new SecurityService.

> Cleanup our SecurityManager integration
> ---------------------------------------
>
>                 Key: OWB-545
>                 URL: https://issues.apache.org/jira/browse/OWB-545
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.0
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 1.1.0
>
>
> We currently sometimes uses static SecurityUtil methods to perform doPrivileged calls and sometimes just go straight to the underlying methods. This should get cleaned up and instead of the SecurityUtil, we shall provide such methods via a plugable SecurityService.
> This would allow us to implement a SimpleSecurityService which doesn't make use of the SecurityManager and therefore will increase the speed of OWB about 50% compared to always using the SecurityManager (which we currently do _not_ do in hotspot areas because of the performance impact).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (OWB-545) Cleanup our SecurityManager integration

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg resolved OWB-545.
-------------------------------

    Resolution: Fixed

most important method calls all got migrated over to the new SecurityService SPI

> Cleanup our SecurityManager integration
> ---------------------------------------
>
>                 Key: OWB-545
>                 URL: https://issues.apache.org/jira/browse/OWB-545
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.0
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 1.1.0
>
>
> We currently sometimes uses static SecurityUtil methods to perform doPrivileged calls and sometimes just go straight to the underlying methods. This should get cleaned up and instead of the SecurityUtil, we shall provide such methods via a plugable SecurityService.
> This would allow us to implement a SimpleSecurityService which doesn't make use of the SecurityManager and therefore will increase the speed of OWB about 50% compared to always using the SecurityManager (which we currently do _not_ do in hotspot areas because of the performance impact).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira