Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359292

Summary: SslContextFactory: setKeystoreInputStream should be better documented or not deprecated
Product: [RT] Jetty Reporter: Max Harper <maxharp3r>
Component: serverAssignee: Greg Wilkins <gregw>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: jetty-inbox
Version: unspecified   
Target Milestone: 7.5.x   
Hardware: All   
OS: All   
Whiteboard:

Description Max Harper CLA 2011-09-28 15:00:50 EDT
Build Identifier: 7.4.5

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.

Depending on the "correct" solution, one of the following would be useful:
1. Document the preferred code for this situation path near the @deprecated annotation
2. De-deprecate this method.

See also http://markmail.org/thread/ej2ek46dpnixtqxv


Reproducible: Always
Comment 1 Greg Wilkins CLA 2011-10-19 00:21:40 EDT
the setKeyStore(KeyStore) method has been made to work correctly.