/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 …]
|
D | KeyChainTestActivity.java | 190 KeyStore serverKeyStore = mTestKeyStore.keyStore; in startWebServer()
|
/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/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/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/apps/Bluetooth/src/com/android/bluetooth/btservice/bluetoothKeystore/ |
D | BluetoothKeystoreService.java | 133 KeyStore keyStore; in start() local 140 keyStore = getKeyStore(); in start() 143 if (keyStore == null) { in start() 156 if (!keyStore.containsAlias(KEYALIAS) && mIsCommonCriteriaMode) { in start() 801 KeyStore keyStore = null; in getKeyStore() local 804 while ((counter <= TRY_MAX) && (keyStore == null)) { in getKeyStore() 806 keyStore = KeyStore.getInstance("AndroidKeyStore"); in getKeyStore() 807 keyStore.load(null); in getKeyStore() 814 return keyStore; in getKeyStore() 821 KeyStore keyStore = getKeyStore(); in getOrCreateSecretKey() local [all …]
|
/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/KeyChain/src/com/android/keychain/ |
D | KeyChainActivity.java | 352 public CertificateParametersFilter(KeyStore keyStore, in CertificateParametersFilter() argument 354 mKeyStore = keyStore; in CertificateParametersFilter() 427 public AliasLoader(KeyStore keyStore, Context context, in AliasLoader() argument 429 mKeyStore = keyStore; in AliasLoader() 574 private CertificateAdapter(KeyStore keyStore, Context context, List<String> aliases) { in CertificateAdapter() argument 577 mKeyStore = keyStore; in CertificateAdapter() 751 private static X509Certificate loadCertificate(KeyStore keyStore, String alias) { in loadCertificate() argument 754 if (keyStore.isCertificateEntry(alias)) { in loadCertificate() 757 cert = keyStore.getCertificate(alias); in loadCertificate() 773 private static List<X509Certificate> loadCertificateChain(KeyStore keyStore, in loadCertificateChain() argument [all …]
|
D | KeyChainService.java | 180 KeyStoreAliasesProvider(KeyStore keyStore) { in KeyStoreAliasesProvider() argument 181 mKeyStore = keyStore; in KeyStoreAliasesProvider()
|
/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/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointObjectFactory.java | 67 WifiKeyStore keyStore, WifiCarrierInfoManager wifiCarrierInfoManager, long providerId, in makePasspointProvider() argument 69 return new PasspointProvider(config, keyStore, wifiCarrierInfoManager, providerId, in makePasspointProvider() 82 public PasspointConfigUserStoreData makePasspointConfigUserStoreData(WifiKeyStore keyStore, in makePasspointConfigUserStoreData() argument 85 return new PasspointConfigUserStoreData(keyStore, wifiCarrierInfoManager, dataSource, in makePasspointConfigUserStoreData()
|
D | PasspointConfigUserStoreData.java | 106 PasspointConfigUserStoreData(WifiKeyStore keyStore, in PasspointConfigUserStoreData() argument 108 mKeyStore = keyStore; in PasspointConfigUserStoreData()
|
D | PasspointProvider.java | 124 public PasspointProvider(PasspointConfiguration config, WifiKeyStore keyStore, in PasspointProvider() argument 127 this(config, keyStore, wifiCarrierInfoManager, providerId, creatorUid, packageName, in PasspointProvider() 131 public PasspointProvider(PasspointConfiguration config, WifiKeyStore keyStore, in PasspointProvider() argument 138 mKeyStore = keyStore; in PasspointProvider()
|
D | PasspointManager.java | 351 WifiNative wifiNative, WifiKeyStore keyStore, Clock clock, in PasspointManager() argument 362 mKeyStore = keyStore; in PasspointManager()
|
/packages/apps/Settings/src/com/android/settings/ |
D | UserCredentialsSettings.java | 214 final KeyStore keyStore = KeyStore.getInstance(KEYSTORE_PROVIDER); in deleteWifiCredential() local 215 keyStore.load( in deleteWifiCredential() 218 keyStore.deleteEntry(credential.getAlias()); in deleteWifiCredential() 297 private SortedMap<String, Credential> getCredentialsForUid(KeyStore keyStore, int uid) { in getCredentialsForUid() argument 301 Enumeration<String> aliases = keyStore.aliases(); in getCredentialsForUid() 307 key = keyStore.getKey(alias, null); in getCredentialsForUid() 335 Certificate[] certs = keyStore.getCertificateChain(alias); in getCredentialsForUid() 345 if (keyStore.isCertificateEntry(alias)) { in getCredentialsForUid()
|
/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/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/ |
D | ServerToSystemTest.java | 78 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in generateKeyStoreKey() local 79 keyStore.load(null); in generateKeyStoreKey() 87 Certificate[] certs = keyStore.getCertificateChain(spec.getKeystoreAlias()); in generateKeyStoreKey() 88 keyStore.deleteEntry(alias); in generateKeyStoreKey()
|
D | SystemInterfaceTest.java | 137 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in generateKeyStoreKey() local 138 keyStore.load(null); in generateKeyStoreKey() 146 Certificate[] certs = keyStore.getCertificateChain(spec.getKeystoreAlias()); in generateKeyStoreKey() 147 keyStore.deleteEntry(alias); in generateKeyStoreKey()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeAuthDigitalSignPayloadTest.java | 134 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_NAME); in testSignAndEncodeWithAndroidKeyStoreKey() local 135 keyStore.load(null); in testSignAndEncodeWithAndroidKeyStoreKey() 141 keyStore.setKeyEntry(keyAlias, rsaPrivateKey, pwd, new Certificate[] {endCertA}); in testSignAndEncodeWithAndroidKeyStoreKey() 142 PrivateKey androidPrivateKey = (PrivateKey) keyStore.getKey(keyAlias, pwd); in testSignAndEncodeWithAndroidKeyStoreKey()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/ |
D | CipherConverter.java | 151 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE); in getKeyStore() local 152 keyStore.load(null); in getKeyStore() 153 return keyStore; in getKeyStore()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiConfigStoreEncryptionUtil.java | 149 KeyStore keyStore = AndroidKeyStoreProvider.getKeyStoreForUid(Process.WIFI_UID); in getOrCreateSecretKey() local 150 if (keyStore.containsAlias(keyAlias)) { // The key exists in key store. Get the key. in getOrCreateSecretKey() 151 KeyStore.SecretKeyEntry secretKeyEntry = (KeyStore.SecretKeyEntry) keyStore in getOrCreateSecretKey()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | MacAddressUtil.java | 90 KeyStore keyStore = AndroidKeyStoreProvider.getKeyStoreForUid(uid); in obtainMacRandHashFunctionInternal() local 92 Key key = keyStore.getKey(alias, null); in obtainMacRandHashFunctionInternal()
|
D | WifiKeyStore.java | 61 WifiKeyStore(Context context, @Nullable KeyStore keyStore, FrameworkFacade frameworkFacade) { in WifiKeyStore() argument 62 mKeyStore = keyStore; in WifiKeyStore()
|
D | WifiInjector.java | 327 KeyStore keyStore = null; in WifiInjector() local 329 keyStore = AndroidKeyStoreProvider.getKeyStoreForUid(Process.WIFI_UID); in WifiInjector() 333 mKeyStore = keyStore; in WifiInjector()
|