On Fri, 6 Dec 2024 10:55:08 GMT, Prasadrao Koppula <pkopp...@openjdk.org> wrote:
> > Would it possible to list down the API entry points where you want map the > > InputStream back to its source? I assume methods such as > > KeyStore.getInstance(File file, ..) are not a concern, is it the > > load(InputStream,password) method? > > We currently do not have any mechanism to map the InputStream back to its > source. Instead, the InputStream is stored, and the caller methods access it > indirectly via the KeyStore object. Sure, but the question I was asking is which APIs are providing the InputStream that you want to re-map back to its source. Would it be possible to enumerate? > In this PR, we are specifically focusing on FileInputStream and handling the > inner object from FilterInputStream. This approach is based on its common > usage pattern. Additionally, I have not encountered any use cases where the > keystore path is provided via other types of InputStreams. I think the question that we have to ponder is whether FIS/FOS/RAF/FC should have APIs to get file path, there are several discussion points there. ------------- PR Comment: https://git.openjdk.org/jdk/pull/20414#issuecomment-2522924882