Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 28174 invoked from network); 19 Jun 2009 14:31:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jun 2009 14:31:56 -0000 Received: (qmail 77004 invoked by uid 500); 19 Jun 2009 14:32:07 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 76979 invoked by uid 500); 19 Jun 2009 14:32:07 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 76971 invoked by uid 99); 19 Jun 2009 14:32:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2009 14:32:07 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.43.132] (HELO sca-es-mail-1.sun.com) (192.18.43.132) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2009 14:31:55 +0000 Received: from fe-sfbay-09.sun.com ([192.18.43.129]) by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n5JEVMKh006469 for ; Fri, 19 Jun 2009 07:31:34 -0700 (PDT) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) id <0KLH00M00PBUOS00@fe-sfbay-09.sun.com> for derby-user@db.apache.org; Fri, 19 Jun 2009 07:31:22 -0700 (PDT) Received: from richard-hillegas-computer.local ([unknown] [129.150.24.33]) by fe-sfbay-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) with ESMTPSA id <0KLH00KUIPO4NT20@fe-sfbay-09.sun.com> for derby-user@db.apache.org; Fri, 19 Jun 2009 07:31:16 -0700 (PDT) Date: Fri, 19 Jun 2009 07:31:16 -0700 From: Rick Hillegas Subject: Re: Not able to create encrypted database In-reply-to: <4A3B9BE9.90500@sbcglobal.net> Sender: Richard.Hillegas@Sun.COM To: Derby Discussion Message-id: <4A3BA134.9090907@sun.com> References: <44AD78FE.2080607@gmail.com> <24110750.post@talk.nabble.com> <4A3B9BE9.90500@sbcglobal.net> User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) X-Virus-Checked: Checked by ClamAV on apache.org 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 >