Searched refs:attestationKey (Results 1 – 2 of 2) sorted by relevance
130 ProvisionedKey attestationKey = in provisioningSucceeds() local132 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()
190 ProvisionedKey attestationKey = mKeyDao.getKeyForClientAndIrpc(mServiceName, in testKeyCreationUsesAlreadyAssignedKey() local194 verifyCertificateChain(attestationKey); in testKeyCreationUsesAlreadyAssignedKey()408 ProvisionedKey attestationKey = mKeyDao.getKeyForClientAndIrpc(mServiceName, in createKeystoreKeyAndVerifyAttestationKeyAssigned() local410 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() argument423 assertThat(Bytes.concat(SUBJECT_PUBKEY_ASN1_PREFIX, attestationKey.publicKey)) in verifyCertificateChain()430 assertThat(attestationKey.certificateChain).isEqualTo(encodedCerts); in verifyCertificateChain()