I have an application that uses various third party API's one of the third party API gets executed in a separate thread.
I want one specific thread to have access a particular directory and restrict that thread to access other directories of my local disk.
Is this possible to be achieved through java security manager?