Home
last modified time | relevance | path

Searched refs:privKey (Results 1 – 4 of 4) 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 assertThat(mDevicePolicyManager.installKeyPair(getWho(), privKey, cert, alias)).isTrue(); in testCanInstallAndRemoveValidRsaKeypair() local
138 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in testCanInstallWithAutomaticAccess() local
144 getWho(), privKey, new Certificate[] {cert}, grant, true)) in testCanInstallWithAutomaticAccess() local
148 getWho(), privKey, new Certificate[] {cert}, withhold, false)) in testCanInstallWithAutomaticAccess() local
180 final PrivateKey privKey = loadPrivateKeyFromAsset("user-cert-chain.key"); in testCanInstallCertChain() local
186 assertThat(mDevicePolicyManager.installKeyPair(getWho(), privKey, certChain, alias, true)) in testCanInstallCertChain() local
207 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in testGrantsDoNotPersistBetweenInstallations() local
213 getWho(), privKey, new Certificate[] {cert}, alias, true)) in testGrantsDoNotPersistBetweenInstallations() local
226 getWho(), privKey, new Certificate[] {cert}, alias, false)) in testGrantsDoNotPersistBetweenInstallations() local
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java1129 final PrivateKey privKey = keyEntry.getPrivateKey(); in assertPrivateKeyEntryEquals() local
1133 assertTrue("Returned PrivateKey " + privKey.getClass() + " should be instanceof ECKey", in assertPrivateKeyEntryEquals()
1134 privKey instanceof ECKey); in assertPrivateKeyEntryEquals()
1137 ((ECKey) privKey).getParams().getCurve()); in assertPrivateKeyEntryEquals()
1139 assertTrue("Returned PrivateKey " + privKey.getClass() + " should be instanceof RSAKey", in assertPrivateKeyEntryEquals()
1140 privKey instanceof RSAKey); in assertPrivateKeyEntryEquals()
1143 ((RSAKey) privKey).getModulus()); in assertPrivateKeyEntryEquals()
1146 assertNull("getFormat() should return null", privKey.getFormat()); in assertPrivateKeyEntryEquals()
1147 assertNull("getEncoded() should return null", privKey.getEncoded()); in assertPrivateKeyEntryEquals()
1607 PrivateKey privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetKeyEntry_ProtectedKey_Unencrypted_Failure() local
[all …]
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertSelectionDelegateTest.java102 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in testCanSelectKeychainKeypairs() local
105 assertThat(mDpm.installKeyPair(null, privKey, cert, alias)).isTrue(); in testCanSelectKeychainKeypairs()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java213 final Key privKey; in doInBackground() local
233 privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(userKey.toByteArray())); in doInBackground()
247 ks.setKeyEntry(ALIAS, privKey, EMPTY_PASSWORD, chain); in doInBackground()