I'm not much of a Java guy, but would the available source for KeePassDroid be of any use? It looks like most of the DB stuff was implemented in Java with the crypto bits being handled by the NDK.
The open source community has created many open source Java projects, which range from charting software to game frameworks to word processors. In this post, I introduce an open source library project ...