openejb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject Re: TR: [jira] Created: (DBCP-297) Ciphered passwords
Date Fri, 09 Oct 2009 20:54:28 GMT
On the PasswordCodec implementation topic, I was thinking we could use  
a ResourceFinder and format like so for finding the impls

  - META-INF/org.apache.openejb.resource.jdbc.PasswordCodec/<foo>

Where "foo" is a file that contains the name of the class.  Then you  
can just say "foo" instead of the full class name in the tooling and  
config files.

The ResourceFinder is pretty slick and all we need to do to get the  
impl is this:

    ResourceFinder finder = new ResourceFinder("META-INF/");
    Map<String, Class> impls =  
finder.mapAllImplementations(PasswordCodec.class);
    Class fooImpl = impls.get("foo");


-David


On Oct 9, 2009, at 1:50 PM, Jean-Louis MONTEIRO wrote:

>
> Committed revision 823678.
>
> The current name is "codec". I don't like it so if you have a better  
> naming,
> feel free to change it.
> Know, i have to create a page on the wiki for this feature.
>
> Jean-Louis
>
>
>
> David Blevins wrote:
>>
>> I was looking around for how someone would get this feature to work.
>> In the javadoc you mention "In the case you have implemented both
>> methods, you can use the PasswordCodec command line tool to encode/
>> decode a password."
>>
>> What command line tool does this refer to?
>>
>> Not sure I see how to create the encrypted password.  Want to make
>> sure we're not missing that part.
>>
>> -David
>>
>> On Sep 22, 2009, at 1:10 AM, David Blevins wrote:
>>
>>> That looks great to me.
>>>
>>> Minor formatting note, make sure it uses 4 spaces instead of 3.
>>>
>>> -David
>>>
>>>
>>> On Sep 21, 2009, at 7:53 AM, Jean-Louis MONTEIRO wrote:
>>>
>>>>
>>>>
>>>>
>>>> David Blevins wrote:
>>>>>
>>>>> Great feature.  I'm fine with where ever it makes sense to put it.
>>>>>
>>>>> -David
>>>>>
>>>>
>>>> Hey guys,
>>>>
>>>> I did some enhancements to DBCP integration in order to support
>>>> ciphered
>>>> passwords.
>>>> Before committing something, i would like to get feedback.
>>>>
>>>> So year is the patch file
>>>> http://www.nabble.com/file/p25530357/patch-ciphered-ds.txt
>>>> patch-ciphered-ds.txt
>>>>
>>>> Any feedback is welcome.
>>>> Thanks.
>>>>
>>>> Jean-Louis
>>>> -- 
>>>> View this message in context:
>>>> http://www.nabble.com/TR%3A--jira--Created%3A-%28DBCP-297%29-Ciphered-passwords-tp24494802p25530357.html
>>>> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/TR%3A--jira--Created%3A-%28DBCP-297%29-Ciphered-passwords-tp24494802p25827720.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>
>


Mime
View raw message