Lines Matching full:mkeystore
94 private final KeyStore mKeyStore = KeyStore.getInstance();
104 return mKeyStore.grant(keystoreAlias, uid);
109 return mKeyStore.get(Credentials.USER_CERTIFICATE + alias);
114 return mKeyStore.get(Credentials.CA_CERTIFICATE + alias);
121 if (!mKeyStore.isUnlocked()) {
123 + mKeyStore.state().toString());
164 if (!mKeyStore.isUnlocked()) {
165 Log.e(TAG, "Keystore is " + mKeyStore.state().toString() + ". Credentials cannot"
172 if (!mKeyStore.importKey(Credentials.USER_PRIVATE_KEY + alias, privateKey, -1,
177 if (!mKeyStore.put(Credentials.USER_CERTIFICATE + alias, userCertificate, -1,
180 if (!mKeyStore.delete(Credentials.USER_PRIVATE_KEY + alias)) {
186 if (!mKeyStore.put(Credentials.CA_CERTIFICATE + alias, userCertificateChain, -1,
203 if (!Credentials.deleteAllTypesForAlias(mKeyStore, alias)) {