/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyChainTest.java | 37 KeyChain.getPrivateKey(null, null); in testNullPrivateKeyArgumentsFail() 47 KeyChain.getPrivateKey(getContext(), null); in testNullPrivateKeyAliasArgumentFails() 57 KeyChain.getPrivateKey(null, ""); in testNullPrivateKeyContextArgumentFails()
|
D | KeyStoreTest.java | 101 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 …]
|
D | AndroidKeyStoreTest.java | 1133 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()
|
D | SignatureTest.java | 466 info = keyFactory.getKeySpec(entry.getPrivateKey(), KeyInfo.class); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
|
D | TestUtils.java | 234 PrivateKey keystorePrivateKey = privEntry.getPrivateKey(); in assertKeyStoreKeyPair()
|
D | KeyPairGeneratorTest.java | 1849 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in KeyPairGeneratorTest.MyKeyManager
|
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
D | PreSelectedKeyAccessTest.java | 44 PrivateKey privateKey = KeyChain.getPrivateKey(getContext(), PRE_SELECTED_ALIAS); in testAccessingPreSelectedAliasExpectingSuccess() 66 assertThat(KeyChain.getPrivateKey(getContext(), PRE_SELECTED_ALIAS)).isNull(); in testAccessingPreSelectedAliasWithoutGrant()
|
D | CertSelectionDelegateTest.java | 104 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
|
D | DirectDelegatedCertInstallerTest.java | 137 PrivateKey obtainedKey = KeyChain.getPrivateKey(getContext(), alias); in testInstallKeyPair() 143 assertThat(KeyChain.getPrivateKey(getContext(), alias)).isNull(); in testInstallKeyPair()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | KeyManagementTest.java | 111 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()
|
D | CredentialManagementAppTest.java | 78 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/ |
D | KeyManagementTest.java | 119 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/ |
D | Utils.java | 97 PrivateKey privateKey = ((KeyStore.PrivateKeyEntry) entry).getPrivateKey(); in initSignature()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | ProtectedConfirmationTest.java | 159 s.initSign(((KeyStore.PrivateKeyEntry) key).getPrivateKey()); in trySign()
|
D | CredentialManagementAppActivity.java | 274 final PrivateKey privateKey = KeyChain.getPrivateKey( in getPrivateKeyAndSignData()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | KeyChainTestActivity.java | 205 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTestActivity.this, alias); in alias()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | Util.java | 896 s.initSign(((KeyStore.PrivateKeyEntry) keyToSignWithEntry).getPrivateKey()); in signPublicKeyWithPrivateKey()
|