Home
last modified time | relevance | path

Searched refs:cert (Results 1 – 25 of 50) sorted by relevance

12

/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java49 import java.security.cert.CertificateEncodingException;
50 import java.security.cert.X509Certificate;
566 X509Certificate cert = config.getCertificate(); in getSignerCapabilities() local
567 return getSignerCapabilities(cert); in getSignerCapabilities()
574 public SignerCapabilities getSignerCapabilities(X509Certificate cert) { in getSignerCapabilities() argument
575 if (cert == null) { in getSignerCapabilities()
581 if (lineageNode.signingCert.equals(cert)) { in getSignerCapabilities()
588 throw new IllegalArgumentException("Certificate (" + cert.getSubjectDN() in getSignerCapabilities()
602 X509Certificate cert = config.getCertificate(); in updateSignerCapabilities() local
605 if (lineageNode.signingCert.equals(cert)) { in updateSignerCapabilities()
[all …]
DSourceStampVerifier.java57 import java.security.cert.Certificate;
58 import java.security.cert.CertificateException;
59 import java.security.cert.CertificateFactory;
60 import java.security.cert.X509Certificate;
/tools/apksig/src/main/java/com/android/apksig/internal/x509/
DCertificate.java32 import java.security.cert.CertificateException;
33 import java.security.cert.X509Certificate;
57 for (X509Certificate cert : certs) { in findCertificate()
58 if (isMatchingCerticicate(cert, id)) { in findCertificate()
59 return cert; in findCertificate()
65 private static boolean isMatchingCerticicate(X509Certificate cert, SignerIdentifier id) { in isMatchingCerticicate() argument
75 return idSerialNumber.equals(cert.getSerialNumber()) in isMatchingCerticicate()
76 && idIssuer.equals(cert.getIssuerX500Principal()); in isMatchingCerticicate()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DResources.java29 import java.security.cert.Certificate;
30 import java.security.cert.CertificateException;
31 import java.security.cert.X509Certificate;
82 for (Certificate cert : certs) { in toCertificateChain()
83 result.add((X509Certificate) cert); in toCertificateChain()
127 X509Certificate cert = Resources.toCertificate(cls, in toLineageSignerConfig() local
129 return new SigningCertificateLineage.SignerConfig.Builder(privateKey, cert).build(); in toLineageSignerConfig()
DX509CertificateUtilsTest.java30 import java.security.cert.Certificate;
31 import java.security.cert.X509Certificate;
166 X509Certificate cert = X509CertificateUtils.generateCertificate(encodedForm); in getHexEncodedDigestOfCertFromResources() local
167 return getHexEncodedDigestOfBytes(cert.getEncoded()); in getHexEncodedDigestOfCertFromResources()
178 for (Certificate cert : certs) { in getHexEncodedDigestsOfCertsFromResources()
179 encodedCerts.add(getHexEncodedDigestOfBytes(cert.getEncoded())); in getHexEncodedDigestsOfCertsFromResources()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DDelegatingX509Certificate.java27 import java.security.cert.CertificateEncodingException;
28 import java.security.cert.CertificateException;
29 import java.security.cert.CertificateExpiredException;
30 import java.security.cert.CertificateNotYetValidException;
31 import java.security.cert.CertificateParsingException;
32 import java.security.cert.X509Certificate;
DX509CertificateUtils.java29 import java.security.cert.CertificateException;
30 import java.security.cert.CertificateFactory;
31 import java.security.cert.X509Certificate;
150 public static Collection<? extends java.security.cert.Certificate> generateCertificates( in generateCertificates()
165 public static Collection<? extends java.security.cert.Certificate> generateCertificates( in generateCertificates()
DGuaranteedEncodedFormX509Certificate.java19 import java.security.cert.CertificateEncodingException;
20 import java.security.cert.X509Certificate;
/tools/apksig/src/test/java/com/android/apksig/
DSigningCertificateLineageTest.java43 import java.security.cert.X509Certificate;
343 for (X509Certificate cert : certs) { in testAllExpectedCertificatesAreInLineage()
345 assertTrue("An unexpected certificate, " + cert.getSubjectDN() + ", is in the lineage", in testAllExpectedCertificatesAreInLineage()
346 expectedCertSet.remove(cert)); in testAllExpectedCertificatesAreInLineage()
357 X509Certificate cert = subList.get(1).getCertificate(); in testSublineageContainsExpectedSigners() local
358 SigningCertificateLineage subLineage = lineage.getSubLineage(cert); in testSublineageContainsExpectedSigners()
581 X509Certificate cert = Resources.toCertificate(SigningCertificateLineageTest.class, in getSignerConfigFromResources() local
583 return new SignerConfig.Builder(privateKey, cert).build(); in getSignerConfigFromResources()
591 X509Certificate cert = Resources.toCertificate(SigningCertificateLineageTest.class, in getApkSignerEngineSignerConfigFromResources() local
594 Collections.singletonList(cert)).build(); in getApkSignerEngineSignerConfigFromResources()
/tools/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/
DAttestationTest.java23 import java.security.cert.Certificate;
24 import java.security.cert.CertificateException;
25 import java.security.cert.CertificateFactory;
26 import java.security.cert.X509Certificate;
215 for (Certificate cert : certChain) { in verifyCertificateSignatures()
216 final byte[] derCert = cert.getEncoded(); in verifyCertificateSignatures()
DAttestation.java24 import java.security.cert.CertificateParsingException;
25 import java.security.cert.X509Certificate;
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DSignatureTestUtils.java28 import java.security.cert.X509Certificate;
36 import org.bouncycastle.cert.X509CertificateHolder;
37 import org.bouncycastle.cert.X509v1CertificateBuilder;
38 import org.bouncycastle.cert.jcajce.JcaX509CertificateConverter;
/tools/apksig/src/apksigner/java/com/android/apksigner/
DSignerParams.java37 import java.security.cert.Certificate;
38 import java.security.cert.X509Certificate;
344 for (Certificate cert : certChain) { in loadPrivateKeyAndCertsFromKeyStore()
345 this.certs.add((X509Certificate) cert); in loadPrivateKeyAndCertsFromKeyStore()
448 for (Certificate cert : certs) { in loadPrivateKeyAndCertsFromFiles()
449 certList.add((X509Certificate) cert); in loadPrivateKeyAndCertsFromFiles()
DApkSignerTool.java44 import java.security.cert.CertificateEncodingException;
45 import java.security.cert.X509Certificate;
1083 public static void printCertificate(X509Certificate cert, String name, boolean verbose) in printCertificate() argument
1085 printCertificate(cert, name, verbose, false); in printCertificate()
1102 public static void printCertificate(X509Certificate cert, String name, boolean verbose, in printCertificate() argument
1104 if (cert == null) { in printCertificate()
1112 System.out.println(name + " certificate DN: " + cert.getSubjectDN()); in printCertificate()
1113 byte[] encodedCert = cert.getEncoded(); in printCertificate()
1121 PublicKey publicKey = cert.getPublicKey(); in printCertificate()
1152 String pemEncodedCert = Base64.getEncoder().encodeToString(cert.getEncoded()); in printCertificate()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DSourceStampCertificateLineage.java36 import java.security.cert.CertificateException;
37 import java.security.cert.CertificateFactory;
38 import java.security.cert.X509Certificate;
DSourceStampVerifier.java44 import java.security.cert.CertificateException;
45 import java.security.cert.CertificateFactory;
46 import java.security.cert.X509Certificate;
DV1SourceStampVerifier.java34 import java.security.cert.CertificateException;
35 import java.security.cert.CertificateFactory;
DV2SourceStampVerifier.java39 import java.security.cert.CertificateException;
40 import java.security.cert.CertificateFactory;
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SigningCertificateLineage.java40 import java.security.cert.CertificateEncodingException;
41 import java.security.cert.CertificateException;
42 import java.security.cert.X509Certificate;
DV3SchemeVerifier.java48 import java.security.cert.CertificateException;
49 import java.security.cert.CertificateFactory;
50 import java.security.cert.X509Certificate;
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java44 import java.security.cert.CertificateException;
45 import java.security.cert.CertificateFactory;
46 import java.security.cert.X509Certificate;
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java42 import java.security.cert.CertificateEncodingException;
43 import java.security.cert.CertificateException;
44 import java.security.cert.X509Certificate;
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeVerifier.java41 import java.security.cert.CertificateException;
42 import java.security.cert.X509Certificate;
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DSigningExtension.java37 import java.security.cert.CertificateEncodingException;
38 import java.security.cert.X509Certificate;
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java70 import java.security.cert.CertificateEncodingException;
71 import java.security.cert.CertificateException;
72 import java.security.cert.X509Certificate;
1224 for (X509Certificate cert : signerCerts) { in generatePkcs7DerEncodedMessage()
1225 signedData.certificates.add(new Asn1OpaqueObject(cert.getEncoded())); in generatePkcs7DerEncodedMessage()

12