Home
last modified time | relevance | path

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

/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java87 private final KeyStore mKeyStore = KeyStore.getInstance(); field in KeyChainService
96 mGrantsDb = new GrantsDatabase(this, new KeyStoreAliasesProvider(mKeyStore)); in onCreate()
107 private final KeyStore mKeyStore; field in KeyChainService.KeyStoreAliasesProvider
110 mKeyStore = keyStore; in KeyStoreAliasesProvider()
116 String[] keyStoreAliases = mKeyStore.list(Credentials.USER_PRIVATE_KEY); in getExistingKeyAliases()
146 return mKeyStore.grant(keystoreAlias, uid);
153 return mKeyStore.get(Credentials.USER_CERTIFICATE + alias);
160 return mKeyStore.get(Credentials.CA_CERTIFICATE + alias);
263 final int errorCode = mKeyStore.attestKey(keystoreAlias, attestArgs, attestationChain);
280 if (!mKeyStore.put(Credentials.USER_CERTIFICATE + alias, userCertificate,
[all …]
DKeyChainActivity.java78 private KeyStore mKeyStore = KeyStore.getInstance(); field in KeyChainActivity
153 final AliasLoader loader = new AliasLoader(mKeyStore, this, keyInfoProvider, in chooseCertificate()
154 new CertificateParametersFilter(mKeyStore, keyTypes, issuers)); in chooseCertificate()
221 private final KeyStore mKeyStore; field in KeyChainActivity.CertificateParametersFilter
227 mKeyStore = keyStore; in CertificateParametersFilter()
242 X509Certificate cert = loadCertificate(mKeyStore, alias); in shouldPresentCertificate()
248 List<X509Certificate> certChain = new ArrayList(loadCertificateChain(mKeyStore, alias)); in shouldPresentCertificate()
295 private final KeyStore mKeyStore; field in KeyChainActivity.AliasLoader
302 mKeyStore = keyStore; in AliasLoader()
309 String[] aliasArray = mKeyStore.list(Credentials.USER_PRIVATE_KEY); in doInBackground()
[all …]
/packages/apps/KeyChain/support/src/com/android/keychain/tests/support/
DKeyChainServiceTestSupport.java33 private final KeyStore mKeyStore = KeyStore.getInstance(); field in KeyChainServiceTestSupport
39 for (String key : mKeyStore.list("")) {
40 if (!mKeyStore.delete(key, KeyStore.UID_SELF)) {
48 return mKeyStore.onUserPasswordChanged(password);
52 return mKeyStore.put(key, value, KeyStore.UID_SELF, KeyStore.FLAG_NONE);
56 return mKeyStore.importKey(key, value, KeyStore.UID_SELF, KeyStore.FLAG_NONE);
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/
DCredentialStoragePreferenceController.java31 private final KeyStore mKeyStore; field in CredentialStoragePreferenceController
35 mKeyStore = KeyStore.getInstance(); in CredentialStoragePreferenceController()
45 preference.setSummary(mKeyStore.isHardwareBacked() in updateState()
DResetCredentialsPreferenceController.java35 private final KeyStore mKeyStore; field in ResetCredentialsPreferenceController
41 mKeyStore = KeyStore.getInstance(); in ResetCredentialsPreferenceController()
61 mPreference.setEnabled(!mKeyStore.isEmpty()); in onResume()
DCredentialStorage.java65 private final KeyStore mKeyStore = KeyStore.getInstance(); field in CredentialStorage
/packages/apps/Settings/src/com/android/settings/security/
DResetCredentialsPreferenceController.java35 private final KeyStore mKeyStore; field in ResetCredentialsPreferenceController
41 mKeyStore = KeyStore.getInstance(); in ResetCredentialsPreferenceController()
61 mPreference.setEnabled(!mKeyStore.isEmpty()); in onResume()
DCredentialStorage.java66 private final KeyStore mKeyStore = KeyStore.getInstance(); field in CredentialStorage
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiConfigControllerTest.java69 private KeyStore mKeyStore; field in WifiConfigControllerTest
258 when(mKeyStore.list(anyString())) in loadCertificates_keyStoreListFail_shouldNotCrash()
272 when(mKeyStore.list(anyString())).thenReturn(WifiConfigController.UNDESIRED_CERTIFICATES); in loadCertificates_undesiredCertificates_shouldNotLoadUndesiredCertificates()
406 KeyStore getKeyStore() { return mKeyStore; } in getKeyStore()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java100 private final KeyStore mKeyStore = KeyStore.getInstance(); field in VpnSettings
227 final List<VpnProfile> vpnProfiles = loadVpnProfiles(mKeyStore); in handleMessage()
DConfigDialog.java61 private final KeyStore mKeyStore = KeyStore.getInstance(); field in ConfigDialog
517 String[] certificates = mKeyStore.list(prefix); in loadCertificates()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DVpnSettings.java99 private final KeyStore mKeyStore = KeyStore.getInstance(); field in VpnSettings
228 final List<VpnProfile> vpnProfiles = loadVpnProfiles(mKeyStore); in handleMessage()
DConfigDialog.java55 private final KeyStore mKeyStore = KeyStore.getInstance(); field in ConfigDialog
449 String[] certificates = mKeyStore.list(prefix); in loadCertificates()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DCredentialStorageActivity.java63 private final KeyStore mKeyStore = KeyStore.getInstance(); field in CredentialStorageActivity