Home
last modified time | relevance | path

Searched refs:certs (Results 1 – 20 of 20) sorted by relevance

/tools/apksig/src/apksigner/java/com/android/apksigner/
DSignerParams.java70 private List<X509Certificate> certs; field in SignerParams
147 return certs; in getCerts()
169 && (certs == null); in isEmpty()
343 this.certs = new ArrayList<>(certChain.length); in loadPrivateKeyAndCertsFromKeyStore()
345 this.certs.add((X509Certificate) cert); in loadPrivateKeyAndCertsFromKeyStore()
443 Collection<? extends Certificate> certs; in loadPrivateKeyAndCertsFromFiles() local
445 certs = X509CertificateUtils.generateCertificates(in); in loadPrivateKeyAndCertsFromFiles()
447 List<X509Certificate> certList = new ArrayList<>(certs.size()); in loadPrivateKeyAndCertsFromFiles()
448 for (Certificate cert : certs) { in loadPrivateKeyAndCertsFromFiles()
451 this.certs = certList; in loadPrivateKeyAndCertsFromFiles()
Dhelp_verify.txt12 --print-certs Show information about the APK's signing certificates
14 --print-certs-pem Show information about the APK's signing certificates and prints the PEM
Dhelp_lineage.txt19 --print-certs Show information about the signing certificates and their capabilities
22 --print-certs-pem Show information about the signing certificates and their capabilities
188 $ apksigner lineage --in /path/to/existing/lineage --print-certs -v
/tools/security/remote_provisioning/cert_validator/src/
Dbcc_main.rs40 if let Some(certs) = sub_args.values_of("certs") { in main()
41 let certs: Vec<_> = certs.collect(); in main() localVariable
42 return bcc::entry::check_sign1_cert_chain(&certs); in main()
Dbcc.rs125 pub fn check_sign1_cert_chain(certs: &[&str]) -> Result<()> { in check_sign1_cert_chain()
126 ensure!(!certs.is_empty()); in check_sign1_cert_chain()
127 let mut payload = Payload::from_sign1(&read(certs[0])?) in check_sign1_cert_chain()
129 for item in certs.iter().skip(1) { in check_sign1_cert_chain()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DResources.java74 Collection<? extends Certificate> certs; in toCertificateChain() local
79 certs = X509CertificateUtils.generateCertificates(in); in toCertificateChain()
81 List<X509Certificate> result = new ArrayList<>(certs.size()); in toCertificateChain()
82 for (Certificate cert : certs) { in toCertificateChain()
DX509CertificateUtilsTest.java176 Collection<? extends Certificate> certs = X509CertificateUtils.generateCertificates(in); in getHexEncodedDigestsOfCertsFromResources() local
177 List<String> encodedCerts = new ArrayList<>(certs.size()); in getHexEncodedDigestsOfCertsFromResources()
178 for (Certificate cert : certs) { in getHexEncodedDigestsOfCertsFromResources()
/tools/apksig/src/main/java/com/android/apksig/internal/x509/
DCertificate.java56 Collection<X509Certificate> certs, SignerIdentifier id) { in findCertificate() argument
57 for (X509Certificate cert : certs) { in findCertificate()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java481 result.certs.add(certificate); in parseSigner()
484 if (result.certs.isEmpty()) { in parseSigner()
488 X509Certificate mainCertificate = result.certs.get(0); in parseSigner()
558 result.signingCertificateLineage.getSubLineage(result.certs.get(0)); in parseSigner()
DV3SchemeSigner.java349 byte[] certs = in encodeSignedData()
367 int payloadSize = digests.length + certs.length + 4 + 4 + attributes.length; in encodeSignedData()
372 result.put(certs); in encodeSignedData()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java366 result.certs.add(certificate); in parseSigner()
369 if (result.certs.isEmpty()) { in parseSigner()
373 X509Certificate mainCertificate = result.certs.get(0); in parseSigner()
/tools/apksig/src/test/java/com/android/apksig/
DSigningCertificateLineageTest.java338 List<X509Certificate> certs = lineage.getCertificatesInLineage(); in testAllExpectedCertificatesAreInLineage() local
342 expectedCertSet.size(), certs.size()); in testAllExpectedCertificatesAreInLineage()
343 for (X509Certificate cert : certs) { in testAllExpectedCertificatesAreInLineage()
DApkSignerTest.java2458 List<X509Certificate> certs = in getDefaultSignerConfigFromResources() local
2460 return new ApkSigner.SignerConfig.Builder(keyNameInResources, privateKey, certs, in getDefaultSignerConfigFromResources()
2468 List<X509Certificate> certs = in getDefaultSignerConfigFromResources() local
2470 return new ApkSigner.SignerConfig.Builder(keyNameInResources, privateKey, certs).build(); in getDefaultSignerConfigFromResources()
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java623 List<X509Certificate> certs = new ArrayList<>(); in getCertificatesInLineage() local
626 certs.add(cert); in getCertificatesInLineage()
628 return certs; in getCertificatesInLineage()
DApkVerifier.java1522 mCerts = result.certs; in V2SchemeSignerInfo()
1594 mCerts = result.certs; in V3SchemeSignerInfo()
1692 mCerts = result.certs; in V4SchemeSignerInfo()
1773 mCertificates = result.certs; in SourceStampInfo()
DSourceStampVerifier.java745 mCertificates = result.certs; in SourceStampInfo()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSignerInfo.java31 public List<X509Certificate> certs = new ArrayList<>(); field in ApkSignerInfo
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeVerifier.java209 result.certs.add(certificate); in parseAndVerifySignatureBlock()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DSourceStampVerifier.java205 result.certs.add(sourceStampCertificate); in verifySourceStampCertificate()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java803 List<X509Certificate> certs, X509Certificate leaf) { in getCertificateChain() argument
804 List<X509Certificate> unusedCerts = new ArrayList<>(certs); in getCertificateChain()