You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Cuong <cu...@kirona.com> on 2009/06/19 15:03:08 UTC
Re: Not able to create encrypted database
Hi,
I know this thread is a while old now, but I seem to be having the same
issues.
Can you tell me if you ever resolved this problem and whether you have
managed to get an encrypted derby db working for J9?
--
View this message in context: http://www.nabble.com/Not-able-to-create-encrypted-database-tp5201768p24110750.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.
Re: Not able to create encrypted database
Posted by Rick Hillegas <Ri...@Sun.COM>.
Rick Hillegas wrote:
> Kathey Marsden wrote:
>> Rick Hillegas wrote:
>>>>
>>> Kim recently added some useful documentation on the limitations of
>>> Derby's support for small devices:
>>> http://db.apache.org/derby/docs/10.5/ref/ref-single.html#rrefjdbcjsr169
>>> As you can see, we do not claim to support encrypted databases on
>>> small devices.
>>>
>> Thanks Rick for pointing this out and Kim for adding the information.
>> It is good to see we do have this documented.
>>> From this thread it seems that, by wiring encryption libraries into
>>> the classpath, some people have gotten encryption to work on Derby
>>> databases on small devices. Of course, as you note, we don't test
>>> these combinations so there may be some gotchas out there.
>>>
>> Mostly what I have seen on this thread is people that *haven't*
>> gotten encryption to work on small devices, but if anyone does get it
>> working it would be great to outline how it is done and create an
>> issue to add a test so it keeps on working.
> You are, of course, right. As I go back through the thread, I don't
> see any success stories. It might be worth experimenting with a
> different encryption package, like this old package from the 10.3
> days: http://java.sun.com/products/archive/jce/
Sigh. Make that the jdk1.3 days.
>>
>> Kathey
>
Re: Not able to create encrypted database
Posted by Daniel John Debrunner <dj...@apache.org>.
Rick Hillegas wrote:
> You are, of course, right. As I go back through the thread, I don't see
> any success stories. It might be worth experimenting with a different
> encryption package, like this old package from the JDK 1.3 days:
> http://java.sun.com/products/archive/jce/
That might be a hopeless task, standard Java methods and classes have
been removed from CDC/Foundation, there is probably a significant chance
that the JDK 1.3 security features depend on those classes.
From a quick look at the JME web-site, it seems that Foundation 1.1
supports crypto, the best approach would be to make the changes in Derby
to support that environment, it may be mainly build changes to allow
Derby to load its crypto support in an CDC/Foundation environment.
http://java.sun.com/javame/reference/apis.jsp
http://java.sun.com/javame/reference/apis/jsr219/
Dan.
Re: Not able to create encrypted database
Posted by Rick Hillegas <Ri...@Sun.COM>.
Kathey Marsden wrote:
> Rick Hillegas wrote:
>>>
>> Kim recently added some useful documentation on the limitations of
>> Derby's support for small devices:
>> http://db.apache.org/derby/docs/10.5/ref/ref-single.html#rrefjdbcjsr169
>> As you can see, we do not claim to support encrypted databases on
>> small devices.
>>
> Thanks Rick for pointing this out and Kim for adding the information.
> It is good to see we do have this documented.
>> From this thread it seems that, by wiring encryption libraries into
>> the classpath, some people have gotten encryption to work on Derby
>> databases on small devices. Of course, as you note, we don't test
>> these combinations so there may be some gotchas out there.
>>
> Mostly what I have seen on this thread is people that *haven't*
> gotten encryption to work on small devices, but if anyone does get it
> working it would be great to outline how it is done and create an
> issue to add a test so it keeps on working.
You are, of course, right. As I go back through the thread, I don't see
any success stories. It might be worth experimenting with a different
encryption package, like this old package from the 10.3 days:
http://java.sun.com/products/archive/jce/
>
> Kathey
Re: Not able to create encrypted database
Posted by Kathey Marsden <km...@sbcglobal.net>.
Rick Hillegas wrote:
>>
> Kim recently added some useful documentation on the limitations of
> Derby's support for small devices:
> http://db.apache.org/derby/docs/10.5/ref/ref-single.html#rrefjdbcjsr169
> As you can see, we do not claim to support encrypted databases on
> small devices.
>
Thanks Rick for pointing this out and Kim for adding the information. It
is good to see we do have this documented.
> From this thread it seems that, by wiring encryption libraries into
> the classpath, some people have gotten encryption to work on Derby
> databases on small devices. Of course, as you note, we don't test
> these combinations so there may be some gotchas out there.
>
Mostly what I have seen on this thread is people that *haven't* gotten
encryption to work on small devices, but if anyone does get it working
it would be great to outline how it is done and create an issue to add
a test so it keeps on working.
Kathey
Re: Not able to create encrypted database
Posted by Rick Hillegas <Ri...@Sun.COM>.
Kathey Marsden wrote:
> Cuong wrote:
>> Hi,
>> I know this thread is a while old now, but I seem to be having the same
>> issues.
>> Can you tell me if you ever resolved this problem and whether you have
>> managed to get an encrypted derby db working for J9?
>>
> There is a comment in our tests:
> // Encryption only supported for Derby in J2SE/J2EE environments.
> // J2ME (JSR169) does not support encryption.
> and then the encryption tests are skipped. My theory always is that
> if it is not tested, it doesn't exist.
>
> I don't immediately see this (or any of the other J2ME restrictions)
> documented in a comprehensive way. Perhaps I am just missing
> something. Maybe a description of the restrictions should be listed
> under http://db.apache.org/derby/docs/dev/devguide/cdevstart18978.html
> Do we need a new issue to list the restrictions or am I just missing
> something?
Kim recently added some useful documentation on the limitations of
Derby's support for small devices:
http://db.apache.org/derby/docs/10.5/ref/ref-single.html#rrefjdbcjsr169
As you can see, we do not claim to support encrypted databases on small
devices.
However, the limitation isn't in Derby. It's just that the encryption
libraries aren't a standard part of the CDC/FP 1.1 platform. Most of the
small device limitations listed in the Reference Guide can be lifted by
loading more libraries onto your small device. From this thread it seems
that, by wiring encryption libraries into the classpath, some people
have gotten encryption to work on Derby databases on small devices. Of
course, as you note, we don't test these combinations so there may be
some gotchas out there.
Regards,
-Rick
>
> If you think that J2ME/J9 has enough encryption support that we could
> get this to work with some development effort please file an
> improvement request in Jira.
> http://db.apache.org/derby/DerbyBugGuidelines.html
>
> Then if you would like to join the development community to implement
> it, I am sure you will find lots of support there in doing so,
> providing there is not some insurmountable technical obstacle.
>
> Kathey
>
Re: Not able to create encrypted database
Posted by Kathey Marsden <km...@sbcglobal.net>.
Cuong wrote:
> Hi,
> I know this thread is a while old now, but I seem to be having the same
> issues.
> Can you tell me if you ever resolved this problem and whether you have
> managed to get an encrypted derby db working for J9?
>
There is a comment in our tests:
// Encryption only supported for Derby in J2SE/J2EE environments.
// J2ME (JSR169) does not support encryption.
and then the encryption tests are skipped. My theory always is that if
it is not tested, it doesn't exist.
I don't immediately see this (or any of the other J2ME restrictions)
documented in a comprehensive way. Perhaps I am just missing something.
Maybe a description of the restrictions should be listed under
http://db.apache.org/derby/docs/dev/devguide/cdevstart18978.html
Do we need a new issue to list the restrictions or am I just missing
something?
If you think that J2ME/J9 has enough encryption support that we could
get this to work with some development effort please file an improvement
request in Jira.
http://db.apache.org/derby/DerbyBugGuidelines.html
Then if you would like to join the development community to implement
it, I am sure you will find lots of support there in doing so, providing
there is not some insurmountable technical obstacle.
Kathey