Home
last modified time | relevance | path

Searched refs:getPrivateKey (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyStoreTest.java101 private static PrivateKeyEntry getPrivateKey() { in getPrivateKey() method in KeyStoreTest
102 return getPrivateKey("RSA"); in getPrivateKey()
105 private static PrivateKeyEntry getPrivateKey(String keyType) { in getPrivateKey() method in KeyStoreTest
118 entry = sTestKeyStore.getPrivateKey("RSA", "RSA"); in getPrivateKey()
120 entry = sTestKeyStore.getPrivateKey("DH", "RSA"); in getPrivateKey()
122 entry = sTestKeyStore.getPrivateKey("DSA", "DSA"); in getPrivateKey()
124 entry = sTestKeyStore.getPrivateKey("EC", "EC"); in getPrivateKey()
135 sPrivateKey2 = TestKeyStore.getClientCertificate().getPrivateKey("RSA", "RSA"); in getPrivateKey2()
271 getPrivateKey().getPrivateKey(), in populate()
273 getPrivateKey().getCertificateChain()); in populate()
[all …]
DKeyChainTest.java37 KeyChain.getPrivateKey(null, null); in testNullPrivateKeyArgumentsFail()
47 KeyChain.getPrivateKey(getContext(), null); in testNullPrivateKeyAliasArgumentFails()
57 KeyChain.getPrivateKey(null, ""); in testNullPrivateKeyContextArgumentFails()
DAndroidKeyStoreTest.java1129 final PrivateKey privKey = keyEntry.getPrivateKey(); in assertPrivateKeyEntryEquals()
1714 assertPrivateKeyEntryEquals(keyEntry, privEntry.getPrivateKey(), in testKeyStore_SetKeyEntry_ReplacedChain_Unencrypted_Success()
1864 PrivateKey privKey = privEntry.getPrivateKey(); in testKeyStore_KeyOperations_Wrap_Unencrypted_Success()
DTestUtils.java180 PrivateKey keystorePrivateKey = privEntry.getPrivateKey(); in assertKeyStoreKeyPair()
DKeyPairGeneratorTest.java1848 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in KeyPairGeneratorTest.MyKeyManager
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java114 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in testCanInstallAndRemoveValidRsaKeypair()
126 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanInstallAndRemoveValidRsaKeypair()
138 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in testCanInstallWithAutomaticAccess()
156 assertThat(KeyChain.getPrivateKey(mActivity, grant).getAlgorithm()).isEqualTo("RSA"); in testCanInstallWithAutomaticAccess()
193 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanInstallCertChain()
207 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in testGrantsDoNotPersistBetweenInstallations()
238 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in testNullKeyParamsFailPredictably()
254 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in testNullAdminComponentIsDenied()
265 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in testNotUserSelectableAliasCanBeChosenViaPolicy()
720 boolean granted = (KeyChain.getPrivateKey(mActivity, alias) != null); in assertGranted()
[all …]
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertSelectionDelegateTest.java102 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in testCanSelectKeychainKeypairs()
110 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanSelectKeychainKeypairs()
146 private static PrivateKey getPrivateKey(final byte[] key, String type) in getPrivateKey() method in CertSelectionDelegateTest
DDirectDelegatedCertInstallerTest.java181 PrivateKey obtainedKey = KeyChain.getPrivateKey(getContext(), alias); in testInstallKeyPair()
187 assertThat(KeyChain.getPrivateKey(getContext(), alias)).isNull(); in testInstallKeyPair()
/cts/tests/tests/net/ipsec/src/android/net/ipsec/ike/cts/
DIkeSessionParamsTest.java381 assertEquals(mClientPrivateKey, localSignConfig.getPrivateKey()); in testBuildWithDigitalSignature()
407 assertEquals(mClientPrivateKey, localSignConfig.getPrivateKey()); in testBuildWithDigitalSignatureAndIntermediateCerts()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java483 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in KeyChainTest.KeyChainKeyManager
486 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTest.this, alias); in getPrivateKey()
DProtectedConfirmationTest.java159 s.initSign(((KeyStore.PrivateKeyEntry) key).getPrivateKey()); in trySign()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DKeyChainTestActivity.java210 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTestActivity.this, alias); in alias()
/cts/tests/tests/identity/src/android/security/identity/cts/
DUtil.java856 s.initSign(((KeyStore.PrivateKeyEntry) keyToSignWithEntry).getPrivateKey()); in signPublicKeyWithPrivateKey()