This is a complete patch that can be applied with `git am` that provides a config file that Java uses to make OpenSC a Java Security Provider. This makes it easy to use OpenSC in Java code, keytool, and jarsigner. That means you can then use an HSM via OpenSC for signing jars, Android APKs, etc.
"slotListIndex = 1" is not generic, so I would rather have this as an example. Is this okay for you?