Home
last modified time | relevance | path

Searched defs:privKey (Results 1 – 3 of 3) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java114 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA"); in testCanInstallAndRemoveValidRsaKeypair() local
118 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, cert, alias)); in testCanInstallAndRemoveValidRsaKeypair() local
138 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA"); in testCanInstallWithAutomaticAccess() local
142 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, in testCanInstallWithAutomaticAccess() local
144 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, in testCanInstallWithAutomaticAccess() local
176 final PrivateKey privKey = loadPrivateKeyFromAsset("user-cert-chain.key"); in testCanInstallCertChain() local
182 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, certChain, alias, true)); in testCanInstallCertChain() local
203 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA"); in testGrantsDoNotPersistBetweenInstallations() local
207 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, in testGrantsDoNotPersistBetweenInstallations() local
218 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, in testGrantsDoNotPersistBetweenInstallations() local
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java1128 final PrivateKey privKey = keyEntry.getPrivateKey(); in assertPrivateKeyEntryEquals() local
1646 PrivateKey privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetKeyEntry_ProtectedKey_Unencrypted_Failure() local
1666 PrivateKey privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetKeyEntry_Unencrypted_Success() local
1694 PrivateKey privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetKeyEntry_Replaced_Unencrypted_Success() local
1717 PrivateKey privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetKeyEntry_Replaced_Unencrypted_Success() local
1903 PrivateKey privKey = privEntry.getPrivateKey(); in testKeyStore_KeyOperations_Wrap_Unencrypted_Success() local
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java210 final Key privKey; in doInBackground() local