Re: [jetty-user] Configuring a SslContextFactory from an input stream

Max Harper <[email protected]> Mon, 3 Oct 2011 09:46:40 -0500
Newsgroups gmane.comp.java.jetty.support
Message-ID <CAP6nrMhh7X=T_AZa+-yAV2s=OZGyn_6yqvZOY2D9GUEQD+uMpw@mail.gmail.com>
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
>>>
>>>
>>>
>>
>