/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | KeyManagementTest.java | 83 final String alias = "com.android.test.valid-rsa-key-1"; in testCanInstallValidRsaKeypair() local 86 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, cert, alias)); in testCanInstallValidRsaKeypair() local 88 assertEquals(alias, new KeyChainAliasFuture(alias).get()); in testCanInstallValidRsaKeypair() 89 final PrivateKey retrievedKey = KeyChain.getPrivateKey(getActivity(), alias); in testCanInstallValidRsaKeypair() 95 final String alias = "com.android.test.null-key-1"; in testNullKeyParamsFailPredictably() local 99 mDevicePolicyManager.installKeyPair(getWho(), null, cert, alias); in testNullKeyParamsFailPredictably() local 104 mDevicePolicyManager.installKeyPair(getWho(), privKey, null, alias); in testNullKeyParamsFailPredictably() local 112 final String alias = "com.android.test.null-admin-1"; in testNullAdminComponentIsDenied() local 116 mDevicePolicyManager.installKeyPair(null, privKey, cert, alias); in testNullAdminComponentIsDenied() 138 public void alias(final String chosenAlias) { in alias() method in KeyManagementTest.KeyChainAliasFuture [all …]
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | ImportedKey.java | 32 public ImportedKey(String alias, KeyPair original, KeyPair keystoreBacked) { in ImportedKey() argument 33 mAlias = alias; in ImportedKey() 41 public ImportedKey(String alias, SecretKey original, SecretKey keystoreBacked) { in ImportedKey() argument 42 mAlias = alias; in ImportedKey()
|
D | AndroidKeyStoreTest.java | 726 String alias = aliases.nextElement(); in setUp() local 727 ksTemp.deleteEntry(alias); in setUp() 741 String alias = aliases.nextElement(); in tearDown() local 742 keyStore.deleteEntry(alias); in tearDown() 786 final String alias = aliases.nextElement(); in assertAliases() local 787 assertTrue("The alias should be in the expected set", expectedSet.contains(alias)); in assertAliases() 788 expectedSet.remove(alias); in assertAliases() 1903 String alias = "MyKey"; in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local 1919 .setAlias(alias) in testKeyStore_Encrypting_RSA_NONE_NOPADDING() 1928 PrivateKey privateKey = (PrivateKey) ks.getKey(alias, null); in testKeyStore_Encrypting_RSA_NONE_NOPADDING() [all …]
|
D | TestUtils.java | 136 static void assertKeyStoreKeyPair(KeyStore keyStore, String alias, KeyPair keyPair) { in assertKeyStoreKeyPair() argument 145 entry = keyStore.getEntry(alias, null); in assertKeyStoreKeyPair() 146 cert = keyStore.getCertificate(alias); in assertKeyStoreKeyPair() 148 throw new RuntimeException("Failed to load entry: " + alias, e); in assertKeyStoreKeyPair() 403 String alias, in importIntoAndroidKeyStore() argument 409 keyStore.setEntry(alias, in importIntoAndroidKeyStore() 413 keyStore.getCertificate(alias).getPublicKey(), in importIntoAndroidKeyStore() 414 (PrivateKey) keyStore.getKey(alias, null)); in importIntoAndroidKeyStore() 418 String alias, in importIntoAndroidKeyStore() argument 423 keyStore.setEntry(alias, in importIntoAndroidKeyStore() [all …]
|
D | KeyPairGeneratorTest.java | 1278 KeyPair keyPair, String alias, in assertGeneratedKeyPairAndSelfSignedCertificate() argument 1290 TestUtils.assertKeyStoreKeyPair(mKeyStore, alias, keyPair); in assertGeneratedKeyPairAndSelfSignedCertificate() 1292 X509Certificate cert = (X509Certificate) mKeyStore.getCertificate(alias); in assertGeneratedKeyPairAndSelfSignedCertificate() 1301 Arrays.asList(mKeyStore.getCertificateChain(alias)), cert); in assertGeneratedKeyPairAndSelfSignedCertificate() 1304 private void assertSelfSignedCertificateSignatureVerifies(String alias) throws Exception { in assertSelfSignedCertificateSignatureVerifies() argument 1305 assertSelfSignedCertificateSignatureVerifies(mKeyStore.getCertificate(alias)); in assertSelfSignedCertificateSignatureVerifies() 1308 private void assertKeyPairAndCertificateUsableForTLSPeerAuthentication(String alias) in assertKeyPairAndCertificateUsableForTLSPeerAuthentication() argument 1311 (PrivateKey) mKeyStore.getKey(alias, null), in assertKeyPairAndCertificateUsableForTLSPeerAuthentication() 1312 mKeyStore.getCertificateChain(alias)); in assertKeyPairAndCertificateUsableForTLSPeerAuthentication() 1442 public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() argument [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | DelegatedCertInstallerTest.java | 209 final String alias = "delegated-cert-installer-test-key"; in testInstallKeyPair() local 215 installKeyPair(TEST_KEY, TEST_CERT, alias); in testInstallKeyPair() 225 installKeyPair(TEST_KEY, TEST_CERT, alias); in testInstallKeyPair() 282 private void installKeyPair(String key, String cert, String alias) { in installKeyPair() argument 287 intent.putExtra(EXTRA_KEY_ALIAS, alias); in installKeyPair()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CertificateTest.java | 123 for (String alias : aliases) { in getDeviceCertificates() 124 assertTrue(keyStore.isCertificateEntry(alias)); in getDeviceCertificates() 125 X509Certificate certificate = (X509Certificate) keyStore.getCertificate(alias); in getDeviceCertificates()
|
D | OpenSSLHeartbleedTest.java | 964 public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() argument 974 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() argument
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/targetprep/ |
D | CtsFilePusher.java | 28 @OptionClass(alias="cts-file-pusher")
|
D | CtsApkInstaller.java | 30 @OptionClass(alias="cts-apk-installer")
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | KeyChainTest.java | 366 .alias(aliasCaptor.capture()); in chooseClientAlias() 381 public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() argument 385 KeyChain.getCertificateChain(KeyChainTest.this, alias); in getCertificateChain() 416 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() argument 418 log("KeyChainKeyManager.getPrivateKey(\"" + alias + "\")"); in getPrivateKey() 419 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTest.this, alias); in getPrivateKey()
|
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
D | CertInstallerActivity.java | 122 String alias = intent.getStringExtra(EXTRA_KEY_ALIAS); in onCreate() local 141 sendResult(dpm.installKeyPair(null, privatekey, certificate, alias), null); in onCreate()
|
/cts/tools/dex-tools/dex/ |
D | classes0.out.dex | 105155 java.lang.String alias
|