/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
D | KeyChainActivityTest.java | 181 KeyStore keyStore = null; in tearDown() local 183 keyStore = KeyStore.getInstance("AndroidKeyStore"); in tearDown() 184 keyStore.load(null); in tearDown() 185 keyStore.deleteEntry("testCertificateParametersFilter_client"); in tearDown() 196 KeyStore keyStore = prepareKeyStoreWithLongChainCertificates(); in testCertificateParametersFilter_filtersByIntermediateIssuer() local 198 assertThat(createCheckerForIssuer(keyStore, ROOT_SUBJECT) in testCertificateParametersFilter_filtersByIntermediateIssuer() 201 assertThat(createCheckerForIssuer(keyStore, INTERMEDIATE_SUBJECT) in testCertificateParametersFilter_filtersByIntermediateIssuer() 204 assertThat(createCheckerForIssuer(keyStore, LEAF_SUBJECT) in testCertificateParametersFilter_filtersByIntermediateIssuer() 213 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in prepareKeyStoreWithLongChainCertificates() local 214 keyStore.load(null); in prepareKeyStoreWithLongChainCertificates() [all …]
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | ResetCredentialsPreferenceController.java | 46 KeyStore keyStore = null; in ResetCredentialsPreferenceController() local 48 keyStore = KeyStore.getInstance("AndroidKeyStore"); in ResetCredentialsPreferenceController() 49 keyStore.load(null); in ResetCredentialsPreferenceController() 51 keyStore = null; in ResetCredentialsPreferenceController() 53 mKeyStore = keyStore; in ResetCredentialsPreferenceController() 54 keyStore = null; in ResetCredentialsPreferenceController() 57 keyStore = KeyStore.getInstance("AndroidKeyStore"); in ResetCredentialsPreferenceController() 58 keyStore.load(new AndroidKeyStoreLoadStoreParameter(KeyProperties.NAMESPACE_WIFI)); in ResetCredentialsPreferenceController() 60 keyStore = null; in ResetCredentialsPreferenceController() 63 mWifiKeyStore = keyStore; in ResetCredentialsPreferenceController()
|
/packages/apps/Settings/src/com/android/settings/utils/ |
D | AndroidKeystoreAliasLoader.java | 61 final KeyStore keyStore; in AndroidKeystoreAliasLoader() local 64 keyStore = KeyStore.getInstance(KEYSTORE_PROVIDER); in AndroidKeystoreAliasLoader() 66 keyStore.load(new AndroidKeyStoreLoadStoreParameter(namespace)); in AndroidKeystoreAliasLoader() 68 keyStore.load(null); in AndroidKeystoreAliasLoader() 70 aliases = keyStore.aliases(); in AndroidKeystoreAliasLoader() 80 final Key key = keyStore.getKey(alias, null); in AndroidKeystoreAliasLoader() 84 final Certificate[] cert = keyStore.getCertificateChain(alias); in AndroidKeystoreAliasLoader() 90 if (keyStore.getCertificate(alias) != null) { in AndroidKeystoreAliasLoader()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointProvisioningTestUtil.java | 106 KeyStore keyStore = null; in createFakeKeyStore() local 109 keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in createFakeKeyStore() 110 keyStore.load(null, null); in createFakeKeyStore() 113 keyStore.setCertificateEntry(String.format("%d", index), cert); in createFakeKeyStore() 120 return keyStore; in createFakeKeyStore()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeCertPayload.java | 135 KeyStore keyStore = null; in validateCertificates() local 139 keyStore = KeyStore.getInstance(KEY_STORE_TYPE_PKCS12); in validateCertificates() 140 keyStore.load(null); in validateCertificates() 146 keyStore.setCertificateEntry(alias, trustedCert); in validateCertificates() 154 tmFactory.init(keyStore); in validateCertificates()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/ |
D | WifiConfigurationProvider.java | 194 KeyStore keyStore = loadKeystoreFromCertificate(userCertificate); in maybeUpdateClientKeyForEAPConfiguration() local 195 String alias = findAliasFromKeystore(keyStore); in maybeUpdateClientKeyForEAPConfiguration() 196 if (TextUtils.isEmpty(alias) || !keyStore.isKeyEntry(alias)) { in maybeUpdateClientKeyForEAPConfiguration() 199 Key key = keyStore.getKey(alias, PASSWORD); in maybeUpdateClientKeyForEAPConfiguration() 208 Certificate[] certificates = keyStore.getCertificateChain(alias); in maybeUpdateClientKeyForEAPConfiguration() 273 private static String findAliasFromKeystore(KeyStore keyStore) in findAliasFromKeystore() argument 275 List<String> aliases = Collections.list(keyStore.aliases()); in findAliasFromKeystore() 288 KeyStore keyStore = KeyStore.getInstance(KEYSTORE_TYPE_PKCS12); in loadKeystoreFromCertificate() local 292 keyStore.load(inputStream, PASSWORD); in loadKeystoreFromCertificate() 294 return keyStore; in loadKeystoreFromCertificate()
|
/packages/apps/Car/DebuggingRestrictionController/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/ |
D | SelfSignedTrustManager.java | 40 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in SelfSignedTrustManager() local 42 keyStore.load(null, null); in SelfSignedTrustManager() 52 keyStore.setCertificateEntry(UUID.randomUUID().toString(), cert); in SelfSignedTrustManager() 56 tmf.init(keyStore); in SelfSignedTrustManager()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/ |
D | CryptUtils.java | 45 KeyStore keyStore = KeyStore.getInstance(PROVIDER); in getSecretKey() local 46 keyStore.load(null); in getSecretKey() 47 if (keyStore.containsAlias(KEY_ALIAS)) { in getSecretKey() 48 KeyStore.SecretKeyEntry secretKeyEntry = (KeyStore.SecretKeyEntry) keyStore.getEntry( in getSecretKey()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/bluetoothKeystore/ |
D | BluetoothKeystoreService.java | 124 KeyStore keyStore; in start() local 131 keyStore = getKeyStore(); in start() 134 if (keyStore == null) { in start() 140 if (!keyStore.containsAlias(KEYALIAS) && mIsCommonCriteriaMode) { in start() 679 KeyStore keyStore = null; in getKeyStore() local 682 while ((counter <= TRY_MAX) && (keyStore == null)) { in getKeyStore() 684 keyStore = KeyStore.getInstance("AndroidKeyStore"); in getKeyStore() 685 keyStore.load(null); in getKeyStore() 694 return keyStore; in getKeyStore() 701 KeyStore keyStore = getKeyStore(); in getOrCreateSecretKey() local [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointObjectFactory.java | 68 WifiKeyStore keyStore, WifiCarrierInfoManager wifiCarrierInfoManager, long providerId, in makePasspointProvider() argument 70 return new PasspointProvider(config, keyStore, wifiCarrierInfoManager, providerId, in makePasspointProvider() 83 public PasspointConfigUserStoreData makePasspointConfigUserStoreData(WifiKeyStore keyStore, in makePasspointConfigUserStoreData() argument 86 return new PasspointConfigUserStoreData(keyStore, wifiCarrierInfoManager, dataSource, in makePasspointConfigUserStoreData()
|
D | PasspointConfigUserStoreData.java | 107 PasspointConfigUserStoreData(WifiKeyStore keyStore, in PasspointConfigUserStoreData() argument 109 mKeyStore = keyStore; in PasspointConfigUserStoreData()
|
/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainActivity.java | 368 public CertificateParametersFilter(KeyStore keyStore, in CertificateParametersFilter() argument 370 mKeyStore = keyStore; in CertificateParametersFilter() 443 public AliasLoader(KeyStore keyStore, Context context, in AliasLoader() argument 445 mKeyStore = keyStore; in AliasLoader() 593 private CertificateAdapter(KeyStore keyStore, Context context, List<String> aliases) { in CertificateAdapter() argument 596 mKeyStore = keyStore; in CertificateAdapter() 783 private static X509Certificate loadCertificate(KeyStore keyStore, String alias) { in loadCertificate() argument 786 if (keyStore.isCertificateEntry(alias)) { in loadCertificate() 789 cert = keyStore.getCertificate(alias); in loadCertificate() 805 private static List<X509Certificate> loadCertificateChain(KeyStore keyStore, in loadCertificateChain() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | UserCredentialsSettings.java | 234 final KeyStore keyStore = KeyStore.getInstance(KEYSTORE_PROVIDER); in deleteWifiCredential() local 235 keyStore.load( in deleteWifiCredential() 238 keyStore.deleteEntry(credential.getAlias()); in deleteWifiCredential() 317 private SortedMap<String, Credential> getCredentialsForUid(KeyStore keyStore, int uid) { in getCredentialsForUid() argument 320 Enumeration<String> aliases = keyStore.aliases(); in getCredentialsForUid() 329 key = keyStore.getKey(alias, null); in getCredentialsForUid() 344 Certificate[] certs = keyStore.getCertificateChain(alias); in getCredentialsForUid() 354 if (keyStore.isCertificateEntry(alias)) { in getCredentialsForUid()
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/security/ |
D | KeyAttestation.java | 144 KeyStore keyStore = mInjector.getKeyStore(); in getAttestationRecordFromKeyAlias() local 145 keyStore.load(null); in getAttestationRecordFromKeyAlias() 146 Certificate[] certificateChain = keyStore.getCertificateChain(keyAlias); in getAttestationRecordFromKeyAlias()
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/crypto/ |
D | TlsSession.java | 157 KeyStore keyStore = null; in initTrustManagers() local 160 keyStore = KeyStore.getInstance(KEY_STORE_TYPE_PKCS12); in initTrustManagers() 161 keyStore.load(null); in initTrustManagers() 164 keyStore.setCertificateEntry(alias, serverCaCert); in initTrustManagers() 169 tmFactory.init(keyStore); in initTrustManagers()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiConfigStoreEncryptionUtil.java | 158 KeyStore keyStore = AndroidKeyStoreProvider.getKeyStoreForUid(Process.WIFI_UID); in getOrCreateSecretKey() local 159 if (keyStore.containsAlias(keyAlias)) { // The key exists in key store. Get the key. in getOrCreateSecretKey() 160 KeyStore.SecretKeyEntry secretKeyEntry = (KeyStore.SecretKeyEntry) keyStore in getOrCreateSecretKey()
|
D | KeystoreWrapper.java | 53 KeyStore keyStore = AndroidKeyStoreProvider.getKeyStoreForUid(uid); in getHmacSHA256ForUid() local 55 Key key = keyStore.getKey(alias, null); in getHmacSHA256ForUid()
|
/packages/apps/Settings/src/com/android/settings/wifi/details2/ |
D | CertificateDetailsPreferenceController.kt | 107 val keyStore = KeyStore.getInstance("AndroidKeyStore") in <lambda>() constant 108 keyStore.load(AndroidKeyStoreLoadStoreParameter(KeyProperties.NAMESPACE_WIFI)) in <lambda>() 109 val cert = keyStore.getCertificate(certificateAliases) in <lambda>()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeAuthDigitalSignPayloadTest.java | 161 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_NAME); in testSignAndEncodeWithAndroidKeyStoreKey() local 162 keyStore.load(null); in testSignAndEncodeWithAndroidKeyStoreKey() 168 keyStore.setKeyEntry(keyAlias, rsaPrivateKey, pwd, new Certificate[] {endCertA}); in testSignAndEncodeWithAndroidKeyStoreKey() 169 PrivateKey androidPrivateKey = (PrivateKey) keyStore.getKey(keyAlias, pwd); in testSignAndEncodeWithAndroidKeyStoreKey()
|
/packages/modules/RemoteKeyProvisioning/app/tests/e2e/src/com/android/rkpdapp/e2etest/ |
D | RkpdHostTestHelperTests.java | 125 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in tearDown() local 126 keyStore.load(null); in tearDown() 127 keyStore.deleteEntry(KEY_ALIAS); in tearDown()
|
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/utils/ |
D | MockWebServerRule.java | 219 KeyStore keyStore = KeyStore.getInstance("PKCS12"); in getTestingSslSocketFactory() local 220 keyStore.load(mCertificateInputStream, mKeyStorePassword); in getTestingSslSocketFactory() 221 keyManagerFactory.init(keyStore, mKeyStorePassword); in getTestingSslSocketFactory()
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/ |
D | MockWebServerRule.java | 231 KeyStore keyStore = KeyStore.getInstance("PKCS12"); in getTestingSslSocketFactory() local 232 keyStore.load(mCertificateInputStream, mKeyStorePassword); in getTestingSslSocketFactory() 233 keyManagerFactory.init(keyStore, mKeyStorePassword); in getTestingSslSocketFactory()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/http/ |
D | MockWebServerRule.java | 244 KeyStore keyStore = KeyStore.getInstance("PKCS12"); 245 keyStore.load(mCertificateInputStream, mKeyStorePassword); 246 keyManagerFactory.init(keyStore, mKeyStorePassword);
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/kanon/ |
D | KeyAttestation.java | 58 KeyAttestation(Boolean useStrongBox, KeyStore keyStore, KeyPairGenerator keyPairGenerator) { in KeyAttestation() argument 60 this.mKeyStore = keyStore; in KeyAttestation()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarServiceUtils.java | 928 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEYSTORE_NAME); in getOrCreateSecretKey() local 929 keyStore.load(/* KeyStore.LoadStoreParameter= */ null); in getOrCreateSecretKey() 930 if (keyStore.containsAlias(keyAlias)) { in getOrCreateSecretKey() 931 SecretKeyEntry secretKeyEntry = (SecretKeyEntry) keyStore.getEntry(keyAlias, in getOrCreateSecretKey()
|