Home
last modified time | relevance | path

Searched refs:importKey (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/keystore/tests/src/android/security/
DKeyStoreTest.java397 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()
DAndroidKeyStoreTest.java1204 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/
DKeyStore.java217 public boolean importKey(String keyName, byte[] key, int uid, int flags) { in importKey() method in KeyStore
DAndroidKeyStore.java327 && !mKeyStore.importKey(Credentials.USER_PRIVATE_KEY + alias, keyBytes, in setPrivateKeyEntry()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigStore.java4115 ret = mKeyStore.importKey(privKeyName, privKeyData, android.os.Process.WIFI_UID, in installKeys()
4123 ret = mKeyStore.importKey(privKeyName, privKeyData, Process.WIFI_UID, in installKeys()