Java extensions: API to store settings

I’m writing a java extension, and I need to store some its settings persistently. I looked at the sdk examples, but I do not see which API should be used for that purpose. Will you please point me to the right direction?