Searched refs:X509Utils (Results 1 – 9 of 9) sorted by relevance
30 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()
32 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()
34 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()
41 import com.android.rkpdapp.utils.X509Utils;147 X509Certificate[] certs = X509Utils.formatX509Certs(attestationKey.certificateChain); in provisioningSucceeds()
37 import com.android.rkpdapp.utils.X509Utils;193 X509Certificate[] certs = X509Utils.formatX509Certs(certChains.get(0)); in requestSignedCertificates()
42 public class X509Utils { class
49 public class X509Utils { class
52 import com.android.rkpdapp.utils.X509Utils;422 assertThat(X509Utils.isCertChainValid(x509Certificates)).isTrue(); in verifyCertificateChain()
73 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()