Searched refs:importKey (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/keystore/tests/src/android/security/ |
D | KeyStoreTest.java | 397 assertTrue("Should be able to import key when unlocked", mKeyStore.importKey(TEST_KEYNAME, in testImport_Success() 406 assertTrue("Should be able to import key when unlocked", mKeyStore.importKey(TEST_KEYNAME, in testImport_grantedUid_Wifi_Success() 415 assertFalse(mKeyStore.importKey(TEST_KEYNAME, PRIVKEY_BYTES, Process.BLUETOOTH_UID, in testImport_ungrantedUid_Bluetooth_Failure() 425 assertFalse("Invalid DER-encoded key should not be imported", mKeyStore.importKey( in testImport_Failure_BadEncoding() 483 assertTrue("Should be able to import key for testcase", mKeyStore.importKey(TEST_KEYNAME, in testGrant_Imported_Success() 521 assertTrue("Should be able to import key for testcase", mKeyStore.importKey(TEST_KEYNAME, in testUngrant_Imported_Success() 655 assertTrue("Should be able to import key when unlocked", mKeyStore.importKey(TEST_KEYNAME, in testGetmtime_Success() 686 assertTrue("Should be able to import key when unlocked", mKeyStore.importKey(TEST_KEYNAME, in testGetmtime_NonExist_Failure()
|
D | AndroidKeyStoreTest.java | 1204 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_DeleteEntry_Encrypted_Success() 1249 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_DeleteEntry_NonExistent_Encrypted_Success() 1313 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetCertificateAlias_PrivateKeyEntry_Encrypted_Success() 1338 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetCertificateAlias_CAEntry_WithPrivateKeyUsingCA_Encrypted_Success() 1385 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetCertificateChain_SingleLength_Encrypted_Success() 1424 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetCreationDate_PrivateKeyEntry_Encrypted_Success() 1444 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetCreationDate_PrivateKeyEntry_Unencrypted_Success() 1485 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetEntry_NullParams_Encrypted_Success() 1506 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetEntry_DSA_NullParams_Unencrypted_Success() 1526 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetEntry_EC_NullParams_Unencrypted_Success() [all …]
|
/frameworks/base/keystore/java/android/security/ |
D | KeyStore.java | 217 public boolean importKey(String keyName, byte[] key, int uid, int flags) { in importKey() method in KeyStore
|
D | AndroidKeyStore.java | 327 && !mKeyStore.importKey(Credentials.USER_PRIVATE_KEY + alias, keyBytes, in setPrivateKeyEntry()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConfigStore.java | 4115 ret = mKeyStore.importKey(privKeyName, privKeyData, android.os.Process.WIFI_UID, in installKeys() 4123 ret = mKeyStore.importKey(privKeyName, privKeyData, Process.WIFI_UID, in installKeys()
|