Home
last modified time | relevance | path

Searched refs:keyStore (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DSyntheticPasswordCrypto.java117 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in decryptBlob() local
118 keyStore.load(null); in decryptBlob()
120 SecretKey decryptionKey = (SecretKey) keyStore.getKey(keyAlias, null); in decryptBlob()
138 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createBlob() local
139 keyStore.load(null); in createBlob()
150 keyStore.setEntry(keyAlias, in createBlob()
166 KeyStore keyStore; in destroyBlobKey() local
168 keyStore = KeyStore.getInstance("AndroidKeyStore"); in destroyBlobKey()
169 keyStore.load(null); in destroyBlobKey()
170 keyStore.deleteEntry(keyAlias); in destroyBlobKey()
DLockSettingsService.java680 java.security.KeyStore keyStore = in migrateOldData() local
682 keyStore.load(null); in migrateOldData()
683 if (keyStore.containsAlias(alias)) { in migrateOldData()
684 keyStore.deleteEntry(alias); in migrateOldData()
895 java.security.KeyStore keyStore = java.security.KeyStore.getInstance("AndroidKeyStore"); in getDecryptedPasswordForTiedProfile() local
896 keyStore.load(null); in getDecryptedPasswordForTiedProfile()
897 SecretKey decryptionKey = (SecretKey) keyStore.getKey( in getDecryptedPasswordForTiedProfile()
1191 java.security.KeyStore keyStore = java.security.KeyStore.getInstance("AndroidKeyStore"); in tieProfileLockToParent() local
1192 keyStore.load(null); in tieProfileLockToParent()
1194 keyStore.setEntry( in tieProfileLockToParent()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointObjectFactory.java52 WifiKeyStore keyStore, SIMAccessor simAccessor, long providerId, int creatorUid) { in makePasspointProvider() argument
53 return new PasspointProvider(config, keyStore, simAccessor, providerId, creatorUid); in makePasspointProvider()
64 public PasspointConfigStoreData makePasspointConfigStoreData(WifiKeyStore keyStore, in makePasspointConfigStoreData() argument
66 return new PasspointConfigStoreData(keyStore, simAccessor, dataSource); in makePasspointConfigStoreData()
DPasspointConfigStoreData.java107 PasspointConfigStoreData(WifiKeyStore keyStore, SIMAccessor simAccessor, in PasspointConfigStoreData() argument
109 mKeyStore = keyStore; in PasspointConfigStoreData()
DPasspointProvider.java90 public PasspointProvider(PasspointConfiguration config, WifiKeyStore keyStore, in PasspointProvider() argument
92 this(config, keyStore, simAccessor, providerId, creatorUid, null, null, null); in PasspointProvider()
95 public PasspointProvider(PasspointConfiguration config, WifiKeyStore keyStore, in PasspointProvider() argument
100 mKeyStore = keyStore; in PasspointProvider()
DPasspointManager.java207 public PasspointManager(Context context, WifiNative wifiNative, WifiKeyStore keyStore, in PasspointManager() argument
212 mKeyStore = keyStore; in PasspointManager()
/frameworks/base/keystore/java/android/security/keystore/
DKeyStoreCryptoOperationUtils.java46 KeyStore keyStore, AndroidKeyStoreKey key, int beginOpResultCode) { in getInvalidKeyExceptionForInit() argument
54 keyStore.getInvalidKeyException(key.getAlias(), key.getUid(), beginOpResultCode); in getInvalidKeyExceptionForInit()
75 KeyStore keyStore, AndroidKeyStoreKey key, int beginOpResultCode) { in getExceptionForCipherInit() argument
89 return getInvalidKeyExceptionForInit(keyStore, key, beginOpResultCode); in getExceptionForCipherInit()
DAndroidKeyStoreProvider.java216 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid) in loadAndroidKeyStorePublicKeyFromKeystore()
219 int errorCode = keyStore.getKeyCharacteristics( in loadAndroidKeyStorePublicKeyFromKeystore()
226 ExportResult exportResult = keyStore.exportKey( in loadAndroidKeyStorePublicKeyFromKeystore()
256 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid) in loadAndroidKeyStoreKeyPairFromKeystore()
259 loadAndroidKeyStorePublicKeyFromKeystore(keyStore, privateKeyAlias, uid); in loadAndroidKeyStoreKeyPairFromKeystore()
267 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid) in loadAndroidKeyStorePrivateKeyFromKeystore()
269 KeyPair keyPair = loadAndroidKeyStoreKeyPairFromKeystore(keyStore, privateKeyAlias, uid); in loadAndroidKeyStorePrivateKeyFromKeystore()
275 @NonNull KeyStore keyStore, @NonNull String secretKeyAlias, int uid) in loadAndroidKeyStoreSecretKeyFromKeystore()
278 int errorCode = keyStore.getKeyCharacteristics( in loadAndroidKeyStoreSecretKeyFromKeystore()
DAndroidKeyStoreAuthenticatedAESCipherSpi.java176 KeyStore keyStore, IBinder operationToken) { in createMainDataStreamer() argument
179 keyStore, operationToken)); in createMainDataStreamer()
192 KeyStore keyStore, IBinder operationToken) { in createAdditionalAuthenticationDataStreamer() argument
194 new AdditionalAuthenticationDataStream(keyStore, operationToken)); in createAdditionalAuthenticationDataStreamer()
408 private AdditionalAuthenticationDataStream(KeyStore keyStore, IBinder operationToken) { in AdditionalAuthenticationDataStream() argument
409 mKeyStore = keyStore; in AdditionalAuthenticationDataStream()
DAndroidKeyStoreECDSASignatureSpi.java46 protected KeyStoreCryptoOperationStreamer createMainDataStreamer(KeyStore keyStore, in createMainDataStreamer() argument
49 super.createMainDataStreamer(keyStore, operationToken), in createMainDataStreamer()
DKeyStoreCryptoOperationChunkedStreamer.java326 public MainDataStream(KeyStore keyStore, IBinder operationToken) { in MainDataStream() argument
327 mKeyStore = keyStore; in MainDataStream()
DAndroidKeyStoreSecretKeyFactorySpi.java76 static KeyInfo getKeyInfo(KeyStore keyStore, String entryAlias, String keyAliasInKeystore, in getKeyInfo() argument
79 int errorCode = keyStore.getKeyCharacteristics( in getKeyInfo()
DAndroidKeyStoreSignatureSpiBase.java242 KeyStore keyStore, IBinder operationToken) { in createMainDataStreamer() argument
245 keyStore, operationToken)); in createMainDataStreamer()
DAndroidKeyStoreCipherSpiBase.java299 KeyStore keyStore, IBinder operationToken) { in createMainDataStreamer() argument
302 keyStore, operationToken)); in createMainDataStreamer()
314 @SuppressWarnings("unused") KeyStore keyStore, in createAdditionalAuthenticationDataStreamer()
/frameworks/base/packages/Osu/src/com/android/hotspot2/flow/
DPlatformAdapter.java98 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in loadKeyStore() local
101 keyStore.load(in, null); in loadKeyStore()
109 Certificate cert = keyStore.getCertificate(alias); in loadKeyStore()
135 Certificate cert = keyStore.getCertificate(alias); in loadKeyStore()
139 keyStore.deleteEntry(alias); in loadKeyStore()
144 keyStore.setCertificateEntry( in loadKeyStore()
150 keyStore.store(out, null); in loadKeyStore()
154 Enumeration<String> aliases = keyStore.aliases(); in loadKeyStore()
160 keyStore.load(null, null); in loadKeyStore()
163 keyStore.setCertificateEntry( in loadKeyStore()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DLockSettingsServiceTestable.java45 public MockInjector(Context context, LockSettingsStorage storage, KeyStore keyStore, in MockInjector() argument
50 mKeyStore = keyStore; in MockInjector()
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DOSUSocketFactory.java291 private static X509Certificate getCert(KeyStore keyStore, String alias) in getCert() argument
293 Certificate cert = keyStore.getCertificate(alias); in getCert()
300 public static Set<X509Certificate> getRootCerts(KeyStore keyStore) throws KeyStoreException { in getRootCerts() argument
304 Certificate cert = keyStore.getCertificate( in getRootCerts()
DClientKeyManager.java31 public ClientKeyManager(HomeSP homeSP, KeyStore keyStore) throws IOException { in ClientKeyManager() argument
32 mKeyStore = keyStore; in ClientKeyManager()
DWiFiKeyManager.java30 public WiFiKeyManager(KeyStore keyStore) throws IOException { in WiFiKeyManager() argument
31 mKeyStore = keyStore; in WiFiKeyManager()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiKeyStore.java51 WifiKeyStore(KeyStore keyStore) { in WifiKeyStore() argument
52 mKeyStore = keyStore; in WifiKeyStore()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java1342 public void startLegacyVpn(VpnProfile profile, KeyStore keyStore, LinkProperties egress) { in startLegacyVpn() argument
1346 startLegacyVpnPrivileged(profile, keyStore, egress); in startLegacyVpn()
1358 public void startLegacyVpnPrivileged(VpnProfile profile, KeyStore keyStore, in startLegacyVpnPrivileged() argument
1378 byte[] value = keyStore.get(Credentials.USER_CERTIFICATE + profile.ipsecUserCert); in startLegacyVpnPrivileged()
1382 byte[] value = keyStore.get(Credentials.CA_CERTIFICATE + profile.ipsecCaCert); in startLegacyVpnPrivileged()
1386 byte[] value = keyStore.get(Credentials.USER_CERTIFICATE + profile.ipsecServerCert); in startLegacyVpnPrivileged()
/frameworks/base/keystore/tests/src/android/security/keystore/
DAndroidKeyStoreTest.java1915 private static X509Certificate generateCertificate(android.security.KeyStore keyStore, in generateCertificate() argument
1921 keyStore, privateKeyAlias, KeyStore.UID_SELF); in generateCertificate()