/cts/tests/tests/keystore/src/android/keystore/cts/ |
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() 271 getPrivateKey().getPrivateKey(), in populate() 273 getPrivateKey().getCertificateChain()); in populate() [all …]
|
D | KeyChainTest.java | 37 KeyChain.getPrivateKey(null, null); in testNullPrivateKeyArgumentsFail() 47 KeyChain.getPrivateKey(getContext(), null); in testNullPrivateKeyAliasArgumentFails() 57 KeyChain.getPrivateKey(null, ""); in testNullPrivateKeyContextArgumentFails()
|
D | AndroidKeyStoreTest.java | 1129 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()
|
D | TestUtils.java | 180 PrivateKey keystorePrivateKey = privEntry.getPrivateKey(); in assertKeyStoreKeyPair()
|
D | KeyPairGeneratorTest.java | 1848 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in KeyPairGeneratorTest.MyKeyManager
|
/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() 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/ |
D | CertSelectionDelegateTest.java | 102 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
|
D | DirectDelegatedCertInstallerTest.java | 181 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/ |
D | IkeSessionParamsTest.java | 381 assertEquals(mClientPrivateKey, localSignConfig.getPrivateKey()); in testBuildWithDigitalSignature() 407 assertEquals(mClientPrivateKey, localSignConfig.getPrivateKey()); in testBuildWithDigitalSignatureAndIntermediateCerts()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | KeyChainTest.java | 483 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in KeyChainTest.KeyChainKeyManager 486 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTest.this, alias); in getPrivateKey()
|
D | ProtectedConfirmationTest.java | 159 s.initSign(((KeyStore.PrivateKeyEntry) key).getPrivateKey()); in trySign()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | KeyChainTestActivity.java | 210 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTestActivity.this, alias); in alias()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | Util.java | 856 s.initSign(((KeyStore.PrivateKeyEntry) keyToSignWithEntry).getPrivateKey()); in signPublicKeyWithPrivateKey()
|