Implementation of Android KeyStore in Java