[
https://issues.apache.org/activemq/browse/CAMEL-2779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60965#action_60965
]
Ashwin Karpe edited comment on CAMEL-2779 at 7/28/10 7:11 AM:
--------------------------------------------------------------
Hi Claus,
I will make the changes you recommend.
BTW, The Ini file is not the only way to instantiate the ShiroSecurityPolicy.
The way you recommend was the way I had it at first pass. You could hand-create
an Ini object, pass in a resource, or handcraft a SecurityManager as well.
Hence I chose the SecurityManager as a option since it is the key entity
irrespective of how the Ini was created.
For example
{code}Ini ini = new Ini();
Ini.Section section =
ini.addSection(IniSecurityManagerFactory.MAIN_SECTION_NAME);
section.put("propsRealm", PropertiesRealm.class.getName());
section.put("propsRealm.resourcePath",
"classpath:org/apache/shiro/config/IniSecurityManagerFactoryTest.propsRealm.properties");
IniSecurityManagerFactory factory = new IniSecurityManagerFactory(ini);
SecurityManager sm = factory.getInstance();
{code}
I am of course be happy to modify the API to support the different options and
will submit with the necessary changes.
Cheers,
Ashwin...
was (Author: akarpe):
Hi Claus,
I will make the changes you recommend.
BTW, The Ini file is not the only way to instantiate the ShiroSecurityPolicy.
The way you recommend was the way I had it at first pass. You could hand-create
an Ini object, pass in a resource, or handcraft a SecurityManager as well.
Hence I chose the SecurityManager as a option since it is the key entity
irrespective of how the Ini was created.
For example
{code}
Ini ini = new Ini();
Ini.Section section =
ini.addSection(IniSecurityManagerFactory.MAIN_SECTION_NAME);
section.put("propsRealm", PropertiesRealm.class.getName());
section.put("propsRealm.resourcePath",
"classpath:org/apache/shiro/config/IniSecurityManagerFactoryTest.propsRealm.properties");
IniSecurityManagerFactory factory = new IniSecurityManagerFactory(ini);
SecurityManager sm = factory.getInstance();
{code}
I am of course be happy to modify the API to support the different options and
will submit with the necessary changes.
Cheers,
Ashwin...
> Security - Allow to use Apache Shiro as security framework as well
> ------------------------------------------------------------------
>
> Key: CAMEL-2779
> URL: https://issues.apache.org/activemq/browse/CAMEL-2779
> Project: Apache Camel
> Issue Type: New Feature
> Reporter: Claus Ibsen
> Assignee: Ashwin Karpe
> Fix For: Future
>
> Attachments: camel-shiro-20100727.zip, camel-shiro.diff
>
>
> Looks like Apache Shiro could be a good security framework
> http://incubator.apache.org/shiro/index.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.