Home
last modified time | relevance | path

Searched refs:X509Utils (Results 1 – 9 of 9) sorted by relevance

/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DX509UtilsTest.java30 import com.android.rkpdapp.utils.X509Utils;
62 X509Certificate[] roundTrip = X509Utils.formatX509Certs(os.toByteArray()); in testFormatX509Certs()
75 byte[] formattedKey = X509Utils.getAndFormatRawPublicKey(testCert); in testGetAndFormatRawPublicKey()
107 assertThat(X509Utils.isCertChainValid(validCertChain)).isTrue(); in testCertificateChains()
108 assertThat(X509Utils.isCertChainValid(invalidCertChain)).isFalse(); in testCertificateChains()
134 assertThat(X509Utils.isSelfSignedCertificate(rootCert)).isTrue(); in testCertChainSwapOAndCN()
135 assertThat(X509Utils.isSelfSignedCertificate(testCert)).isFalse(); in testCertChainSwapOAndCN()
136 assertThat(X509Utils.isCertChainValid(certChain)).isFalse(); in testCertChainSwapOAndCN()
149 Date expirationTime = X509Utils.getExpirationTimeForCertificateChain(certs); in testCertChainExpirationTimeWhenRootExpiresLater()
164 Date expirationTime = X509Utils.getExpirationTimeForCertificateChain(certs); in testCertChainExpirationTimeWhenLeafExpiresLater()
/packages/modules/Virtualization/service_vm/test_apk/src/java/com/android/virt/rkpd/vm_attestation/testapp/
DRkpdVmAttestationTest.java32 import com.android.virt.vm_attestation.util.X509Utils;
126 X509Utils.validateAndParseX509CertChain(signingResult.certificateChain); in usingProvisionedKeyForVmAttestationSucceeds()
127 X509Utils.verifyAvfRelatedCerts(certs, challenge, TEST_APP_PACKAGE_NAME); in usingProvisionedKeyForVmAttestationSucceeds()
128 X509Utils.verifySignature(certs[0], MESSAGE.getBytes(), signingResult.signature); in usingProvisionedKeyForVmAttestationSucceeds()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/provisioner/
DProvisioner.java34 import com.android.rkpdapp.utils.X509Utils;
169 X509Certificate[] certChain = X509Utils.formatX509Certs(chain); in associateCertsWithKeys()
171 long expirationDate = X509Utils.getExpirationTimeForCertificateChain(certChain) in associateCertsWithKeys()
173 byte[] rawPublicKey = X509Utils.getAndFormatRawPublicKey(leafCertificate); in associateCertsWithKeys()
234 X509Certificate[] certChain = X509Utils.formatX509Certs(key.certificateChain); in checkAndDeleteBadKeys()
/packages/modules/RemoteKeyProvisioning/app/tests/avf/src/com/android/avf/rkpdapp/e2etest/
DAvfIntegrationTest.java41 import com.android.rkpdapp.utils.X509Utils;
147 X509Certificate[] certs = X509Utils.formatX509Certs(attestationKey.certificateChain); in provisioningSucceeds()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/interfaces/
DServerInterface.java37 import com.android.rkpdapp.utils.X509Utils;
193 X509Certificate[] certs = X509Utils.formatX509Certs(certChains.get(0)); in requestSignedCertificates()
/packages/modules/Virtualization/service_vm/test_apk/src/java/com/android/virt/vm_attestation/util/
DX509Utils.java42 public class X509Utils { class
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/utils/
DX509Utils.java49 public class X509Utils { class
/packages/modules/RemoteKeyProvisioning/app/tests/e2e/src/com/android/rkpdapp/e2etest/
DKeystoreIntegrationTest.java52 import com.android.rkpdapp.utils.X509Utils;
422 assertThat(X509Utils.isCertChainValid(x509Certificates)).isTrue(); in verifyCertificateChain()
/packages/modules/Virtualization/tests/testapk/src/java/com/android/microdroid/test/
DMicrodroidTests.java73 import com.android.virt.vm_attestation.util.X509Utils;
308 X509Utils.validateAndParseX509CertChain(signingResult.certificateChain); in checkVmAttestationWithValidChallenge()
309 X509Utils.verifyAvfRelatedCerts(certs, challenge, TEST_APP_PACKAGE_NAME); in checkVmAttestationWithValidChallenge()
310 X509Utils.verifySignature( in checkVmAttestationWithValidChallenge()