Home
last modified time | relevance | path

Searched refs:certificates (Results 1 – 19 of 19) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java194 if (signerConfig.certificates.isEmpty()) { in generateSignerBlock()
197 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignerBlock()
203 signedData.certificates = encodeCertificates(signerConfig.certificates); in generateSignerBlock()
242 encodeAsSequenceOfLengthPrefixedElements(signedData.certificates), in generateSignerBlock()
296 public List<byte[]> certificates; field in V2SchemeSigner.V2SignatureSchemeBlock.SignedData
DV2SchemeVerifier.java341 ByteBuffer certificates = ApkSigningBlockUtils.getLengthPrefixedSlice(signedData); in parseSigner() local
346 while (certificates.hasRemaining()) { in parseSigner()
348 byte[] encodedCert = ApkSigningBlockUtils.readLengthPrefixedByteArray(certificates); in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java175 if (signerConfig.certificates.isEmpty()) { in generateSignerBlock()
178 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignerBlock()
184 signedData.certificates = encodeCertificates(signerConfig.certificates); in generateSignerBlock()
258 encodeAsSequenceOfLengthPrefixedElements(signedData.certificates)); in encodeSignedData()
307 public List<byte[]> certificates; field in V3SchemeSigner.V3SignatureSchemeBlock.SignedData
DV3SchemeVerifier.java389 ByteBuffer certificates = getLengthPrefixedSlice(signedData); in parseSigner() local
409 while (certificates.hasRemaining()) { in parseSigner()
411 byte[] encodedCert = readLengthPrefixedByteArray(certificates); in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DV1SourceStampSigner.java60 if (sourceStampSignerConfig.certificates.isEmpty()) { in generateSourceStampBlock()
74 sourceStampSignerConfig.certificates.get(0).getEncoded(); in generateSourceStampBlock()
DV2SourceStampSigner.java63 if (sourceStampSignerConfig.certificates.isEmpty()) { in generateSourceStampBlock()
90 sourceStampSignerConfig.certificates.get(0).getEncoded(); in generateSourceStampBlock()
/tools/apksig/src/main/java/com/android/apksig/
DDefaultApkSignerEngine.java230 List<X509Certificate> certificates = signerConfig.getCertificates(); in createV1SignerConfigs() local
231 PublicKey publicKey = certificates.get(0).getPublicKey(); in createV1SignerConfigs()
252 v1SignerConfig.certificates = certificates; in createV1SignerConfigs()
327 String keyAlgorithm = config.certificates.get(0).getPublicKey().getAlgorithm(); in createV3SignerConfigs()
347 mSigningCertificateLineage.getSubLineage(config.certificates.get(0)); in createV3SignerConfigs()
418 List<X509Certificate> certificates = signerConfig.getCertificates(); in createSigningBlockSignerConfig() local
419 PublicKey publicKey = certificates.get(0).getPublicKey(); in createSigningBlockSignerConfig()
423 newSignerConfig.certificates = certificates; in createSigningBlockSignerConfig()
1414 String name, PrivateKey privateKey, List<X509Certificate> certificates) { in SignerConfig() argument
1417 mCertificates = Collections.unmodifiableList(new ArrayList<>(certificates)); in SignerConfig()
[all …]
DSigningCertificateLineage.java364 List<X509Certificate> certificates = new ArrayList<>(1); in spawnDescendant() local
365 certificates.add(parent.getCertificate()); in spawnDescendant()
369 newSignerConfig.certificates = certificates; in spawnDescendant()
DApkSigner.java952 String name, PrivateKey privateKey, List<X509Certificate> certificates) { in SignerConfig() argument
955 mCertificates = Collections.unmodifiableList(new ArrayList<>(certificates)); in SignerConfig()
991 public Builder(String name, PrivateKey privateKey, List<X509Certificate> certificates) { in Builder() argument
997 mCertificates = new ArrayList<>(certificates); in Builder()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeSigner.java158 if (signerConfig.certificates.isEmpty()) { in generateSignature()
161 if (signerConfig.certificates.size() != 1) { in generateSignature()
166 final PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignature()
168 final List<byte[]> encodedCertificates = encodeCertificates(signerConfig.certificates); in generateSignature()
/tools/apksig/src/main/java/com/android/apksig/internal/pkcs7/
DSignedData.java47 public List<Asn1OpaqueObject> certificates; field in SignedData
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java88 public List<X509Certificate> certificates; field in V1SchemeSigner.SignerConfig
299 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in signManifest()
318 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in getOutputEntryNames()
495 List<X509Certificate> signerCerts = signerConfig.certificates; in generateSignatureBlock()
DV1SchemeVerifier.java528 signedDataCertificates = parseCertificates(signedData.certificates); in verifySigBlockAgainstSigFile()
/tools/apksig/src/apksigner/java/com/android/apksigner/
Dhelp_verify.txt12 --print-certs Show information about the APK's signing certificates
Dhelp_lineage.txt12 different signing certificates.
19 --print-certs Show information about the signing certificates and their capabilities
183 2. Display details about the signing certificates and their capabilities in the lineage:
Dhelp_rotate.txt11 different signing certificates. This can be used with APK Signature Scheme v3
Dhelp_sign.txt76 signing certificates changed for an APK using APK
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java913 public static List<byte[]> encodeCertificates(List<X509Certificate> certificates) in encodeCertificates() argument
915 List<byte[]> result = new ArrayList<>(certificates.size()); in encodeCertificates()
916 for (X509Certificate certificate : certificates) { in encodeCertificates()
1254 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignaturesOverData()
1336 signedData.certificates = new ArrayList<>(signerCerts.size()); in generatePkcs7DerEncodedMessage()
1338 signedData.certificates.add(new Asn1OpaqueObject(cert.getEncoded())); in generatePkcs7DerEncodedMessage()
1377 public List<X509Certificate> certificates; field in ApkSigningBlockUtils.SignerConfig
/tools/tradefederation/core/tests/res/testdata/
Dtradefed-prebuilt-cts-8.0_r21.jarMETA-INF/ META-INF/MANIFEST.MF jline/ jline/CompletionHandler.class CompletionHandler ...