geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan <>
Subject Re: Access to Geronimo KeyStores
Date Wed, 02 Mar 2011 13:33:37 GMT
Hmm, I know little about those crypto spec docs, maybe other members have
better advice.
But Geronimo uses
to manage its key store, if you would like to work with this class, in your
EJB, use the codes below could help you get the reference to that instance
in the Geronimo kernel, and this codes are Geronimo Specific.

private FileKeystoreManager fileKeystoreManager;

Hope it helps.

2011/3/2 KHAksnes <>

> As far as I understand the spesificatons the keystores needs to be
> configured
> fully outside the applicaton code (by the container) to be useful from
> EJBs.
> the programming restrictions in place (EJB3 ejbcore Chapter 21 section
> 21.1.2) And in particular this restricton:
>  "An enterprise bean must not use the package to attempt to access
> files and directories in the file system." makes it impossible for EJBs to
> setup and  configure file system based key stores themselves, this kind of
> resources must be provided by the container somehow.
> A possible solution could be a database based key store but I haven't found
> one yet.
> At the end this only leaves the getInstance methods of
> as ways of getting a keystore.  Dependency injection
> whould be great but I can't find JNDI references anywhere. :-(
> --
> View this message in context:
> Sent from the Users mailing list archive at


View raw message