Home
last modified time | relevance | path

Searched refs:getCertificate (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyStoreTest.java277 getPrivateKey().getCertificate()); in populate()
375 setCertificate(ks, alias, getPrivateKey().getCertificate()); in setCertificate()
401 assertEquals(getPrivateKey().getCertificate(), privateKey.getCertificate()); in assertPrivateKey()
422 assertEquals(getPrivateKey().getCertificate(), actual); in assertCertificate()
426 assertEquals(getPrivateKey2().getCertificate(), actual); in assertCertificate2()
431 assertEquals(getPrivateKey().getCertificate(), in assertCertificate()
707 keyStore.getCertificate(null); in test_KeyStore_getCertificate()
717 keyStore.getCertificate(null); in test_KeyStore_getCertificate()
725 assertNull(keyStore.getCertificate("")); in test_KeyStore_getCertificate()
729 assertCertificate(keyStore.getCertificate(ALIAS_CERTIFICATE)); in test_KeyStore_getCertificate()
[all …]
DAndroidKeyStoreTest.java911 mKeyStore.getCertificate(TEST_ALIAS_2)); in testKeyStore_GetCertificate_Single_Unencrypted_Success()
913 Certificate retrieved = mKeyStore.getCertificate(TEST_ALIAS_1); in testKeyStore_GetCertificate_Single_Unencrypted_Success()
927 mKeyStore.getCertificate(TEST_ALIAS_1)); in testKeyStore_GetCertificate_NonExist_Unencrypted_Failure()
1129 final PublicKey pubKey = keyEntry.getCertificate().getPublicKey(); in assertPrivateKeyEntryEquals()
1152 keyEntry.getCertificate()); in assertPrivateKeyEntryEquals()
1282 Certificate retrieved = mKeyStore.getCertificate(TEST_ALIAS_1); in testKeyStore_SetCertificate_CA_Unencrypted_Success()
1754 privEntry.getCertificate(), chain); in testKeyStore_SetKeyEntry_ReplacedChain_Unencrypted_Success()
1906 PublicKey pubKey = privEntry.getCertificate().getPublicKey(); in testKeyStore_KeyOperations_Wrap_Unencrypted_Success()
1955 PublicKey publicKey = ks.getCertificate(alias).getPublicKey(); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
1984 PublicKey publicKey = mKeyStore.getCertificate(TEST_ALIAS_2).getPublicKey(); in testKeyStore_PrivateKeyEntry_RSA_PublicKeyWorksWithCrypto()
[all …]
DTestUtils.java165 cert = keyStore.getCertificate(alias); in assertKeyStoreKeyPair()
173 assertEquals(cert, privEntry.getCertificate()); in assertKeyStoreKeyPair()
432 keyStore.getCertificate(alias).getPublicKey(), in importIntoAndroidKeyStore()
DKeyPairGeneratorTest.java1321 X509Certificate cert = (X509Certificate) mKeyStore.getCertificate(alias); in assertGeneratedKeyPairAndSelfSignedCertificate()
1334 assertSelfSignedCertificateSignatureVerifies(mKeyStore.getCertificate(alias)); in assertSelfSignedCertificateSignatureVerifies()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java115 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testCanInstallAndRemoveValidRsaKeypair()
139 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testCanInstallWithAutomaticAccess()
204 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testGrantsDoNotPersistBetweenInstallations()
231 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testNullKeyParamsFailPredictably()
247 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testNullAdminComponentIsDenied()
258 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testNotUserSelectableAliasCanBeChosenViaPolicy()
633 private static Certificate getCertificate(byte[] cert) throws CertificateException { in getCertificate() method in KeyManagementTest
/cts/tests/tests/security/src/android/security/cts/
DCertificateTest.java161 X509Certificate certificate = (X509Certificate) wfaKeyStore.getCertificate(alias); in getDeviceWfaCertificates()
182 X509Certificate certificate = (X509Certificate) keyStore.getCertificate(alias); in getDeviceCertificates()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java505 SslCertificate cert = mWebView.getCertificate(); in testInsecureSiteClearsCertificate()
514 assertNull(mWebView.getCertificate()); in testInsecureSiteClearsCertificate()
535 assertNull(mWebView.getCertificate()); in testSecureSiteSetsCertificate()
543 SslCertificate cert = mWebView.getCertificate(); in testSecureSiteSetsCertificate()