Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyChainTest.java37 KeyChain.getPrivateKey(null, null); in testNullPrivateKeyArgumentsFail()
47 KeyChain.getPrivateKey(getContext(), null); in testNullPrivateKeyAliasArgumentFails()
57 KeyChain.getPrivateKey(null, ""); in testNullPrivateKeyContextArgumentFails()
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()
272 getPrivateKey().getPrivateKey(), in populate()
274 getPrivateKey().getCertificateChain()); in populate()
[all …]
DAndroidKeyStoreTest.java1133 final PrivateKey privKey = keyEntry.getPrivateKey(); in assertPrivateKeyEntryEquals()
1718 assertPrivateKeyEntryEquals(keyEntry, privEntry.getPrivateKey(), in testKeyStore_SetKeyEntry_ReplacedChain_Unencrypted_Success()
1905 PrivateKey privKey = privEntry.getPrivateKey(); in testKeyStore_KeyOperations_Wrap_Unencrypted_Success()
DSignatureTest.java466 info = keyFactory.getKeySpec(entry.getPrivateKey(), KeyInfo.class); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
DTestUtils.java234 PrivateKey keystorePrivateKey = privEntry.getPrivateKey(); in assertKeyStoreKeyPair()
DKeyPairGeneratorTest.java1849 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in KeyPairGeneratorTest.MyKeyManager
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DPreSelectedKeyAccessTest.java44 PrivateKey privateKey = KeyChain.getPrivateKey(getContext(), PRE_SELECTED_ALIAS); in testAccessingPreSelectedAliasExpectingSuccess()
66 assertThat(KeyChain.getPrivateKey(getContext(), PRE_SELECTED_ALIAS)).isNull(); in testAccessingPreSelectedAliasWithoutGrant()
DCertSelectionDelegateTest.java104 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in testCanSelectKeychainKeypairs()
112 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanSelectKeychainKeypairs()
158 private static PrivateKey getPrivateKey(final byte[] key, String type) in getPrivateKey() method in CertSelectionDelegateTest
DDirectDelegatedCertInstallerTest.java137 PrivateKey obtainedKey = KeyChain.getPrivateKey(getContext(), alias); in testInstallKeyPair()
143 assertThat(KeyChain.getPrivateKey(getContext(), alias)).isNull(); in testInstallKeyPair()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DKeyManagementTest.java111 private static PrivateKey getPrivateKey(Context context, String alias) { in getPrivateKey() method in KeyManagementTest
113 return KeyChain.getPrivateKey(context, alias); in getPrivateKey()
190 assertThat(sDeviceState.dpc().keyChain().getPrivateKey(/* context= */ null, RSA_ALIAS)) in installKeyPair_withAutomatedAccess_aliasIsGranted()
208 assertThat(sDeviceState.dpc().keyChain().getPrivateKey(/* context= */ null, RSA_ALIAS)) in installKeyPair_withoutAutomatedAccess_aliasIsNotGranted()
328 getPrivateKey(TestApis.context().instrumentedContext(), RSA_ALIAS); in getPrivateKey_aliasIsGranted_returnPrivateKey()
353 assertThat(sDeviceState.dpc().keyChain().getPrivateKey( in install_wasPreviouslyGrantedOnPreviousInstall_grantDoesNotPersist()
516 PrivateKey key = KeyChain.getPrivateKey(sContext, RSA_ALIAS); in grantKeyPair_keyUsable()
537 PrivateKey key = KeyChain.getPrivateKey(sContext, RSA_ALIAS); in revokeKeyPairFromApp_keyNotUsable()
DCredentialManagementAppTest.java78 getPrivateKey(FakeKeys.FAKE_RSA_1.privateKey, "RSA");
95 private static PrivateKey getPrivateKey(final byte[] key, String type) { in getPrivateKey() method in CredentialManagementAppTest
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java119 mFakePrivKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in setUp()
149 assertThat(KeyChain.getPrivateKey(mActivity, grant).getAlgorithm()).isEqualTo("RSA"); in testCanInstallWithAutomaticAccess()
184 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanInstallCertChain()
752 boolean granted = (KeyChain.getPrivateKey(mActivity, alias) != null); in assertGranted()
756 private static PrivateKey getPrivateKey(final byte[] key, String type) in getPrivateKey() method in KeyManagementTest
789 return getPrivateKey(output.toByteArray(), "RSA"); in loadPrivateKeyFromAsset()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/
DUtils.java97 PrivateKey privateKey = ((KeyStore.PrivateKeyEntry) entry).getPrivateKey(); in initSignature()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DProtectedConfirmationTest.java159 s.initSign(((KeyStore.PrivateKeyEntry) key).getPrivateKey()); in trySign()
DCredentialManagementAppActivity.java274 final PrivateKey privateKey = KeyChain.getPrivateKey( in getPrivateKeyAndSignData()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DKeyChainTestActivity.java205 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTestActivity.this, alias); in alias()
/cts/tests/tests/identity/src/android/security/identity/cts/
DUtil.java896 s.initSign(((KeyStore.PrivateKeyEntry) keyToSignWithEntry).getPrivateKey()); in signPublicKeyWithPrivateKey()