/tools/apksig/src/main/java/com/android/apksig/internal/x509/ |
D | Certificate.java | 32 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/ |
D | Resources.java | 29 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()
|
D | X509CertificateUtilsTest.java | 30 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/ |
D | SigningCertificateLineage.java | 48 import java.security.cert.CertificateEncodingException; 49 import java.security.cert.X509Certificate; 546 X509Certificate cert = config.getCertificate(); in getSignerCapabilities() local 547 return getSignerCapabilities(cert); in getSignerCapabilities() 554 public SignerCapabilities getSignerCapabilities(X509Certificate cert) { in getSignerCapabilities() argument 555 if (cert == null) { in getSignerCapabilities() 561 if (lineageNode.signingCert.equals(cert)) { in getSignerCapabilities() 568 throw new IllegalArgumentException("Certificate (" + cert.getSubjectDN() in getSignerCapabilities() 582 X509Certificate cert = config.getCertificate(); in updateSignerCapabilities() local 585 if (lineageNode.signingCert.equals(cert)) { in updateSignerCapabilities() [all …]
|
D | ApkVerifier.java | 51 import java.security.cert.CertificateEncodingException; 52 import java.security.cert.X509Certificate; 587 byte[] cert = v2v3Certs.get(0).getEncoded(); in checkV4Certificate() 588 if (!Arrays.equals(cert, v4Cert)) { in checkV4Certificate() 867 private void addSignerCertificate(X509Certificate cert) { in addSignerCertificate() argument 868 mSignerCerts.add(cert); in addSignerCertificate()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/ |
D | SignatureTestUtils.java | 28 import java.security.cert.X509Certificate; 36 import org.bouncycastle.cert.X509CertificateHolder; 37 import org.bouncycastle.cert.X509v1CertificateBuilder; 38 import org.bouncycastle.cert.jcajce.JcaX509CertificateConverter;
|
D | FullApkSignTest.java | 33 import java.security.cert.X509Certificate;
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | GuaranteedEncodedFormX509Certificate.java | 19 import java.security.cert.CertificateEncodingException; 20 import java.security.cert.X509Certificate;
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | SigningCertificateLineageTest.java | 47 import java.security.cert.X509Certificate; 318 for (X509Certificate cert : certs) { in testAllExpectedCertificatesAreInLineage() 320 assertTrue("An unexpected certificate, " + cert.getSubjectDN() + ", is in the lineage", in testAllExpectedCertificatesAreInLineage() 321 expectedCertSet.remove(cert)); in testAllExpectedCertificatesAreInLineage() 332 X509Certificate cert = subList.get(1).getCertificate(); in testSublineageContainsExpectedSigners() local 333 SigningCertificateLineage subLineage = lineage.getSubLineage(cert); in testSublineageContainsExpectedSigners() 528 X509Certificate cert = Resources.toCertificate(SigningCertificateLineageTest.class, in getSignerConfigFromResources() local 530 return new SignerConfig.Builder(privateKey, cert).build(); in getSignerConfigFromResources() 538 X509Certificate cert = Resources.toCertificate(SigningCertificateLineageTest.class, in getApkSignerEngineSignerConfigFromResources() local 541 Collections.singletonList(cert)).build(); in getApkSignerEngineSignerConfigFromResources()
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | SignerParams.java | 37 import java.security.cert.Certificate; 38 import java.security.cert.X509Certificate; 335 for (Certificate cert : certChain) { in loadPrivateKeyAndCertsFromKeyStore() 336 this.certs.add((X509Certificate) cert); in loadPrivateKeyAndCertsFromKeyStore() 439 for (Certificate cert : certs) { in loadPrivateKeyAndCertsFromFiles() 440 certList.add((X509Certificate) cert); in loadPrivateKeyAndCertsFromFiles()
|
D | ApkSignerTool.java | 45 import java.security.cert.CertificateEncodingException; 46 import java.security.cert.X509Certificate; 990 public static void printCertificate(X509Certificate cert, String name, boolean verbose) in printCertificate() argument 992 if (cert == null) { in printCertificate() 1000 System.out.println(name + " certificate DN: " + cert.getSubjectDN()); in printCertificate() 1001 byte[] encodedCert = cert.getEncoded(); in printCertificate() 1009 PublicKey publicKey = cert.getPublicKey(); in printCertificate()
|
D | help_sign.txt | 113 file in X.509 format (see --key and --cert). 203 --cert Load certificate chain from the specified file. The file 236 $ apksigner sign --key release.pk8 --cert release.x509.pem app.apk
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | SourceStampVerifier.java | 34 import java.security.cert.CertificateException; 35 import java.security.cert.CertificateFactory; 36 import java.security.cert.X509Certificate;
|
D | V1SourceStampVerifier.java | 34 import java.security.cert.CertificateException; 35 import java.security.cert.CertificateFactory;
|
D | V2SourceStampVerifier.java | 35 import java.security.cert.CertificateException; 36 import java.security.cert.CertificateFactory;
|
D | V1SourceStampSigner.java | 31 import java.security.cert.CertificateEncodingException;
|
D | V2SourceStampSigner.java | 34 import java.security.cert.CertificateEncodingException;
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SigningCertificateLineage.java | 40 import java.security.cert.CertificateEncodingException; 41 import java.security.cert.CertificateException; 42 import java.security.cert.X509Certificate;
|
D | V3SchemeVerifier.java | 47 import java.security.cert.CertificateException; 48 import java.security.cert.CertificateFactory; 49 import java.security.cert.X509Certificate;
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zfile/ |
D | ApkCreatorFactory.java | 24 import java.security.cert.X509Certificate;
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4SchemeVerifier.java | 41 import java.security.cert.CertificateException; 42 import java.security.cert.X509Certificate;
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 42 import java.security.cert.CertificateException; 43 import java.security.cert.CertificateFactory; 44 import java.security.cert.X509Certificate;
|
D | V2SchemeSigner.java | 38 import java.security.cert.CertificateEncodingException;
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/ |
D | SigningExtension.java | 37 import java.security.cert.CertificateEncodingException; 38 import java.security.cert.X509Certificate;
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeSigner.java | 40 import java.security.cert.CertificateEncodingException; 41 import java.security.cert.CertificateException; 42 import java.security.cert.X509Certificate;
|