Home
last modified time | relevance | path

Searched refs:getCertificateChain (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyStoreTest.java274 getPrivateKey().getCertificateChain()); in populate()
313 ks.setKeyEntry(alias, privateKey.getPrivateKey(), null, privateKey.getCertificateChain()); in setPrivateKeyNoPassword()
328 privateKey.getCertificateChain()); in setPrivateKey()
343 privateKey.getCertificateChain()); in setPrivateKeyBytes()
403 assertEquals(Arrays.asList(getPrivateKey().getCertificateChain()), in assertPrivateKey()
404 Arrays.asList(privateKey.getCertificateChain())); in assertPrivateKey()
438 assertEquals(Arrays.asList(getPrivateKey().getCertificateChain()), in assertCertificateChain()
667 keyStore.getCertificateChain(null); in test_KeyStore_getCertificateChain()
677 keyStore.getCertificateChain(null); in test_KeyStore_getCertificateChain()
685 assertNull(keyStore.getCertificateChain("")); in test_KeyStore_getCertificateChain()
[all …]
DKeyAttestationTest.java251 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation_NoChallenge()
294 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation_DeviceLocked()
326 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testAttestationKmVersionMatchesFeatureVersion()
380 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testAttestationKmVersionMatchesFeatureVersionStrongBox()
525 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testRsaAttestation_NoChallenge()
567 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testRsaAttestation_DeviceLocked()
593 assertNull(keyStore.getCertificateChain(keystoreAlias)); in testAesAttestation()
613 assertNull(keyStore.getCertificateChain(keystoreAlias)); in testHmacAttestation()
691 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testRsaAttestation()
751 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation()
DAttestationPerformanceTest.java111 mKeyGen.getCertificateChain(); in measure()
DPerformanceTestBase.java343 Certificate[] getCertificateChain() throws Exception { in getCertificateChain() method in PerformanceTestBase.AndroidKeystoreKeyGenerator
344 return mKeyStore.getCertificateChain(KEY_ALIAS); in getCertificateChain()
DAttestKeyTest.java193 return mKeyStore.getCertificateChain(spec.getKeystoreAlias()); in generateKeyPair()
DAndroidKeyStoreTest.java1005 Certificate[] actual = mKeyStore.getCertificateChain(TEST_ALIAS_1); in testKeyStore_GetCertificateChain_SingleLength_Unencrypted_Success()
1015 mKeyStore.getCertificateChain(TEST_ALIAS_2)); in testKeyStore_GetCertificateChain_SingleLength_Unencrypted_Success()
1022 mKeyStore.getCertificateChain(TEST_ALIAS_1)); in testKeyStore_GetCertificateChain_NonExist_Unencrypted_Failure()
1155 Certificate[] actualChain = keyEntry.getCertificateChain(); in assertPrivateKeyEntryEquals()
DKeyPairGeneratorTest.java1681 Arrays.asList(mKeyStore.getCertificateChain(alias)), cert); in assertGeneratedKeyPairAndSelfSignedCertificate()
1692 mKeyStore.getCertificateChain(alias)); in assertKeyPairAndCertificateUsableForTLSPeerAuthentication()
1834 public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() method in KeyPairGeneratorTest.MyKeyManager
DTestUtils.java245 Certificate[] chain = privEntry.getCertificateChain(); in assertKeyStoreKeyPair()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DPreSelectedKeyAccessTest.java54 X509Certificate[] certs = KeyChain.getCertificateChain(getContext(), PRE_SELECTED_ALIAS); in testAccessingPreSelectedAliasExpectingSuccess()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java362 desiredIssuer = (X509Certificate) mKeyStore.getCertificateChain(ALIAS)[1]; in startWebServer()
448 public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() method in KeyChainTest.KeyChainKeyManager
452 KeyChain.getCertificateChain(KeyChainTest.this, alias); in getCertificateChain()
DCredentialManagementAppActivity.java300 KeyChain.getCertificateChain(getApplicationContext(), mChosenAlias); in getPublicKeyAndVerifySignature()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java220 assertThat(KeyChain.getCertificateChain(mActivity, alias)).isEqualTo(certChain); in testCanInstallCertChain()
783 X509Certificate[] fetchedCerts = KeyChain.getCertificateChain(mActivity, alias); in testCanSetKeyPairCert()
808 X509Certificate[] fetchedCerts = KeyChain.getCertificateChain(mActivity, alias); in testCanSetKeyPairCertChain()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCredentialManagementAppTest.java242 Certificate[] fetchedCerts = KeyChain.getCertificateChain(CONTEXT, ALIAS); in setKeyPairCertificate_isCredentialManagementApp_success()