Home
last modified time | relevance | path

Searched refs:mKeyStore (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/src/com/android/settings/
DCredentialStorage.java105 private final KeyStore mKeyStore = KeyStore.getInstance(); field in CredentialStorage
151 switch (mKeyStore.state()) { in handleUnlockOrInstall()
258 if (!mKeyStore.importKey(key, value, uid, flags)) { in installIfAvailable()
270 if (!mKeyStore.put(certName, certData, uid, flags)) { in installIfAvailable()
280 if (!mKeyStore.put(caListName, caListData, uid, flags)) { in installIfAvailable()
329 mKeyStore.reset(); in doInBackground()
454 mKeyStore.password(password); in onActivityResult()
529 mKeyStore.unlock(mOldPassword.getText().toString()); in onDismiss()
530 int error = mKeyStore.getLastError(); in onDismiss()
DSecuritySettings.java125 private KeyStore mKeyStore; field in SecuritySettings
319 mKeyStore = KeyStore.getInstance(); // needs to be initialized for onResume() in createPreferenceHierarchy()
324 mKeyStore.isHardwareBacked() ? R.string.credential_storage_type_hardware in createPreferenceHierarchy()
582 mResetCredentials.setEnabled(!mKeyStore.isEmpty()); in onResume()
DChooseLockGeneric.java100 private KeyStore mKeyStore; field in ChooseLockGeneric.ChooseLockGenericFragment
114 mKeyStore = KeyStore.getInstance(); in onCreate()
282 if (!mKeyStore.isEmpty()) { in upgradeQualityForKeyStore()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java92 private final KeyStore mKeyStore = KeyStore.getInstance();
102 if (!mKeyStore.grant(keystoreAlias, uid)) {
118 return mKeyStore.get(Credentials.USER_CERTIFICATE + alias);
125 if (!mKeyStore.isUnlocked()) {
127 + mKeyStore.state().toString());
155 if (!mKeyStore.importKey(Credentials.USER_PRIVATE_KEY + alias, privateKey, -1,
160 if (!mKeyStore.put(Credentials.USER_CERTIFICATE + alias, userCertificate, -1,
163 if (!mKeyStore.delKey(Credentials.USER_PRIVATE_KEY + alias)) {
DKeyChainActivity.java75 private KeyStore mKeyStore = KeyStore.getInstance(); field in KeyChainActivity
111 if (!mKeyStore.isUnlocked()) { in onResume()
143 String[] aliasArray = mKeyStore.saw(Credentials.USER_PRIVATE_KEY); in doInBackground()
330 byte[] bytes = mKeyStore.get(Credentials.USER_CERTIFICATE + alias); in doInBackground()
364 if (mKeyStore.isUnlocked()) { in onActivityResult()
/packages/apps/Settings/tests/src/com/android/settings/vpn2/
DCertInstallerHelper.java67 private KeyStore mKeyStore = KeyStore.getInstance(); field in CertInstallerHelper
73 mKeyStore.reset(); in CertInstallerHelper()
74 mKeyStore.password(CERT_STORE_PASSWORD); in CertInstallerHelper()
183 if (!mKeyStore.importKey(key, value, mUid, flags)) { in installCertificate()
194 if (!mKeyStore.put(certName, certData, mUid, flags)) { in installCertificate()
206 if (!mKeyStore.put(caListName, caListData, mUid, flags)) { in installCertificate()
DVpnTests.java102 private KeyStore mKeyStore = KeyStore.getInstance(); field in VpnTests
187 byte[] value = mKeyStore.get(Credentials.USER_CERTIFICATE + profile.ipsecUserCert); in printKeyStore()
191 byte[] value = mKeyStore.get(Credentials.CA_CERTIFICATE + profile.ipsecCaCert); in printKeyStore()
195 byte[] value = mKeyStore.get(Credentials.USER_CERTIFICATE + profile.ipsecServerCert); in printKeyStore()
/packages/apps/KeyChain/support/src/com/android/keychain/tests/support/
DKeyChainServiceTestSupport.java30 private final KeyStore mKeyStore = KeyStore.getInstance(); field in KeyChainServiceTestSupport
36 return mKeyStore.reset();
40 return mKeyStore.password(password);
44 return mKeyStore.put(key, value, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED);
48 return mKeyStore.importKey(key, value, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED);
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertInstaller.java74 private final KeyStore mKeyStore = KeyStore.getInstance(); field in CertInstaller
136 && !mKeyStore.isUnlocked()); in needsKeyStoreAccess()
271 if (!mKeyStore.delete(PKEY_MAP_KEY)) { in savePkeyMap()
277 if (!mKeyStore.put(PKEY_MAP_KEY, bytes, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED)) { in savePkeyMap()
283 byte[] bytes = mKeyStore.get(PKEY_MAP_KEY); in getPkeyMap()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java80 private final KeyStore mKeyStore = KeyStore.getInstance(); field in VpnSettings
191 if (!mKeyStore.isUnlocked()) { in onResume()
213 final List<VpnProfile> profiles = loadVpnProfiles(mKeyStore); in onResume()
269 mKeyStore.put(Credentials.VPN + profile.key, profile.encode(), KeyStore.UID_SELF, in onClick()
338 mKeyStore.delete(Credentials.VPN + mSelectedKey); in onContextItemSelected()
DVpnDialog.java43 private final KeyStore mKeyStore = KeyStore.getInstance(); field in VpnDialog
307 String[] certificates = mKeyStore.saw(prefix); in loadCertificates()