Re: [jetty-user] Configuring a SslContextFactory from an input stream
Max Harper <[email protected]> Mon, 10 Oct 2011 11:03:30 -0500
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <CAP6nrMh9fLz+n7NwyHvoCFN=DyU6E_jh13iS_q5rDX24=z+t5g@mail.gmail.com> |
Hey everyone - I'm still waiting on a response to this. Ideas on building a resource from a stream? In theory, I'd like to implement Michael's idea, but I am not certain how to proceed. Max On Mon, Oct 3, 2011 at 9:46 AM, Max Harper <[email protected]> wrote: > I don't understand how to create a Resource from a stream. I only see > static builders that take files or names. What am I missing? > > ref: > http://download.eclipse.org/jetty/stable-7/apidocs/index.html?org/eclipse/jetty/util/resource/Resource.html > > Max > > > On Sun, Oct 2, 2011 at 1:50 PM, Michael Gorovoy <[email protected]>wrote: > >> Simone and I had a conversation about this a while ago, and decided that >> it is best to use Resource classes for this purpose, instead of using the >> stream directly. >> >> Michael Gorovoy >> [email protected] >> >> >> >> On Wed, Sep 28, 2011 at 3:01 PM, Max Harper <[email protected]> wrote: >> >>> Thanks Jesse. I filed >>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=359292 >>> >>> Max >>> >>> >>> On Wed, Sep 28, 2011 at 1:39 PM, Jesse McConnell < >>> [email protected]> wrote: >>> >>>> not sure why that is marked deprecated, open an issue on >>>> bugs.eclipse.org under RT/Jetty and we'll take a look >>>> >>>> I can't see why we would restrict to just file based like that >>>> >>>> cheers, >>>> jesse >>>> >>>> -- >>>> jesse mcconnell >>>> [email protected] >>>> >>>> >>>> >>>> On Wed, Sep 28, 2011 at 13:10, Max Harper <[email protected]> wrote: >>>> > I would like to configure a SslContextFactory with a keystore that's >>>> stored >>>> > in a database. Therefore, I cannot (easily) use the >>>> setKeystore(String) >>>> > method, which assumes a path on the file system. On the other hand, >>>> it >>>> > works great to use the setKeystoreInputStream method, but that's been >>>> > deprecated. I could not find documentation discussing the preferred >>>> > alternatives to this method. So I ask you, the Jetty experts: how >>>> should I >>>> > configure my SslContextFactory? >>>> > I'm using Jetty 7.4.5. >>>> > Thanks for your help! >>>> > Max >>>> > >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>>> >>> >> >