Searched refs:privKey (Results 1 – 3 of 3) sorted by relevance
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | KeyManagementTest.java | 114 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/ |
D | AndroidKeyStoreTest.java | 1128 final PrivateKey privKey = keyEntry.getPrivateKey(); in assertPrivateKeyEntryEquals() local 1132 assertTrue("Returned PrivateKey " + privKey.getClass() + " should be instanceof ECKey", in assertPrivateKeyEntryEquals() 1133 privKey instanceof ECKey); in assertPrivateKeyEntryEquals() 1136 ((ECKey) privKey).getParams().getCurve()); in assertPrivateKeyEntryEquals() 1138 assertTrue("Returned PrivateKey " + privKey.getClass() + " should be instanceof RSAKey", in assertPrivateKeyEntryEquals() 1139 privKey instanceof RSAKey); in assertPrivateKeyEntryEquals() 1142 ((RSAKey) privKey).getModulus()); in assertPrivateKeyEntryEquals() 1145 assertNull("getFormat() should return null", privKey.getFormat()); in assertPrivateKeyEntryEquals() 1146 assertNull("getEncoded() should return null", privKey.getEncoded()); in assertPrivateKeyEntryEquals() 1646 PrivateKey privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetKeyEntry_ProtectedKey_Unencrypted_Failure() local [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | KeyChainTest.java | 210 final Key privKey; in doInBackground() local 230 privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(userKey.toByteArray())); in doInBackground() 244 ks.setKeyEntry(ALIAS, privKey, EMPTY_PASSWORD, chain); in doInBackground()
|