Home
last modified time | relevance | path

Searched refs:attestationKey (Results 1 – 2 of 2) sorted by relevance

/packages/modules/RemoteKeyProvisioning/app/tests/avf/src/com/android/avf/rkpdapp/e2etest/
DAvfIntegrationTest.java130 ProvisionedKey attestationKey = in provisioningSucceeds() local
132 assertThat(attestationKey).isNull(); in provisioningSucceeds()
134 attestationKey = in provisioningSucceeds()
139 assertThat(attestationKey).isNotNull(); in provisioningSucceeds()
140 assertThat(attestationKey.irpcHal).isEqualTo(SERVICE_NAME); in provisioningSucceeds()
147 X509Certificate[] certs = X509Utils.formatX509Certs(attestationKey.certificateChain); in provisioningSucceeds()
/packages/modules/RemoteKeyProvisioning/app/tests/e2e/src/com/android/rkpdapp/e2etest/
DKeystoreIntegrationTest.java190 ProvisionedKey attestationKey = mKeyDao.getKeyForClientAndIrpc(mServiceName, in testKeyCreationUsesAlreadyAssignedKey() local
194 verifyCertificateChain(attestationKey); in testKeyCreationUsesAlreadyAssignedKey()
408 ProvisionedKey attestationKey = mKeyDao.getKeyForClientAndIrpc(mServiceName, in createKeystoreKeyAndVerifyAttestationKeyAssigned() local
410 assertThat(attestationKey).isNotNull(); in createKeystoreKeyAndVerifyAttestationKeyAssigned()
411 assertThat(attestationKey.irpcHal).isEqualTo(mServiceName); in createKeystoreKeyAndVerifyAttestationKeyAssigned()
413 verifyCertificateChain(attestationKey); in createKeystoreKeyAndVerifyAttestationKeyAssigned()
416 private void verifyCertificateChain(ProvisionedKey attestationKey) throws Exception { in verifyCertificateChain() argument
423 assertThat(Bytes.concat(SUBJECT_PUBKEY_ASN1_PREFIX, attestationKey.publicKey)) in verifyCertificateChain()
430 assertThat(attestationKey.certificateChain).isEqualTo(encodedCerts); in verifyCertificateChain()