Home
last modified time | relevance | path

Searched refs:Certificate (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/core/java/android/util/apk/
DSourceStampVerificationResult.java21 import java.security.cert.Certificate;
36 private final Certificate mCertificate;
37 private final List<? extends Certificate> mCertificateLineage;
40 boolean present, boolean verified, @Nullable Certificate certificate, in SourceStampVerificationResult()
41 List<? extends Certificate> certificateLineage) { in SourceStampVerificationResult()
56 public Certificate getCertificate() { in getCertificate()
60 public List<? extends Certificate> getCertificateLineage() { in getCertificateLineage()
82 public static SourceStampVerificationResult verified(Certificate certificate, in verified()
83 List<? extends Certificate> certificateLineage) { in verified()
DApkSignatureVerifier.java48 import java.security.cert.Certificate;
202 Certificate[][] nonstreamingCerts = null; in verifyV4Signature()
214 nonstreamingCerts = new Certificate[][]{v3Signer.certs}; in verifyV4Signature()
242 Certificate[][] signerCerts = new Certificate[][]{vSigner.certs}; in verifyV4Signature()
302 Certificate[][] signerCerts = new Certificate[][]{vSigner.certs}; in verifyV3Signature()
341 Certificate[][] signerCerts = vSigner.certs; in verifyV2Signature()
367 final Certificate[][] lastCerts; in verifyV1Signature()
388 final ParseResult<Certificate[][]> result = in verifyV1Signature()
416 final Certificate[][] entryCerts; in verifyV1Signature()
417 final ParseResult<Certificate[][]> ret = in verifyV1Signature()
[all …]
DApkSignatureSchemeV4Verifier.java40 import java.security.cert.Certificate;
108 final Pair<Certificate, byte[]> result = verifySigner(signingInfo, signedData); in verify()
115 return new VerifiedSigner(new Certificate[]{result.first}, result.second, contentDigests); in verify()
140 private static Pair<Certificate, byte[]> verifySigner(V4Signature.SigningInfo signingInfo, in verifySigner()
216 public final Certificate[] certs;
223 public VerifiedSigner(Certificate[] certs, byte[] apkDigest, in VerifiedSigner()
DSourceStampVerifier.java47 import java.security.cert.Certificate;
97 Certificate stampCertificate = null; in verify()
98 List<? extends Certificate> stampCertificateLineage = Collections.emptyList(); in verify()
197 List<? extends Certificate> sourceStampCertificateLineage = Collections.emptyList(); in verify()
/frameworks/base/media/lib/signer/java/com/android/mediadrm/signer/
DMediaDrmSigner.java66 public final static class Certificate { class in MediaDrmSigner
67 private final MediaDrm.Certificate mCertificate;
69 Certificate(MediaDrm.Certificate certificate) { in Certificate() method in MediaDrmSigner.Certificate
118 public static Certificate provideCertificateResponse(MediaDrm drm, byte[] response) in provideCertificateResponse()
120 return new Certificate(drm.provideCertificateResponse(response)); in provideCertificateResponse()
/frameworks/base/keystore/java/android/security/
DAttestedKeyPair.java23 import java.security.cert.Certificate;
40 private final List<Certificate> mAttestationRecord;
49 @Nullable KeyPair keyPair, @NonNull List<Certificate> attestationRecord) { in AttestedKeyPair()
57 public AttestedKeyPair(@Nullable KeyPair keyPair, @Nullable Certificate[] attestationRecord) { in AttestedKeyPair()
89 public @NonNull List<Certificate> getAttestationRecord() { in getAttestationRecord()
DCredentials.java34 import java.security.cert.Certificate;
170 public static byte[] convertToPem(Certificate... objects) in convertToPem()
175 for (Certificate o : objects) { in convertToPem()
199 Certificate c = cf.generateCertificate( in convertFromPem()
/frameworks/base/core/java/android/util/jar/
DStrictJarVerifier.java29 import java.security.cert.Certificate;
95 private final Hashtable<String, Certificate[]> certificates =
96 new Hashtable<String, Certificate[]>(5);
98 private final Hashtable<String, Certificate[][]> verifiedEntries =
99 new Hashtable<String, Certificate[][]>();
113 private final Certificate[][] certChains;
115 private final Hashtable<String, Certificate[][]> verifiedEntries;
118 Certificate[][] certChains, Hashtable<String, Certificate[][]> verifedEntries) { in VerifierEntry()
224 ArrayList<Certificate[]> certChains = new ArrayList<Certificate[]>(); in initEntry()
232 Certificate[] certChain = certificates.get(signatureFile); in initEntry()
[all …]
DStrictJarFile.java29 import java.security.cert.Certificate;
164 public Certificate[][] getCertificateChains(ZipEntry ze) { in getCertificateChains()
183 public Certificate[] getCertificates(ZipEntry ze) { in getCertificates()
185 Certificate[][] certChains = verifier.getCertificateChains(ze.getName()); in getCertificates()
189 for (Certificate[] chain : certChains) { in getCertificates()
194 Certificate[] certs = new Certificate[count]; in getCertificates()
196 for (Certificate[] chain : certChains) { in getCertificates()
/frameworks/base/core/java/android/security/net/config/
DTrustedCertificateStoreAdapter.java20 import java.security.cert.Certificate;
78 public Certificate getCertificate(String alias) { in getCertificate()
83 public Certificate getCertificate(String alias, boolean includeDeletedSystem) { in getCertificate()
113 public String getCertificateAlias(Certificate c) { in getCertificateAlias()
118 public String getCertificateAlias(Certificate c, boolean includeDeletedSystem) { in getCertificateAlias()
DResourceCertificateSource.java23 import java.security.cert.Certificate;
56 Collection<? extends Certificate> certs; in ensureInitialized()
69 for (Certificate cert : certs) { in ensureInitialized()
/frameworks/base/core/java/android/content/pm/
DSignature.java33 import java.security.cert.Certificate;
51 private Certificate[] mCertificateChain;
82 public Signature(Certificate[] certificateChain) throws CertificateEncodingException { in Signature()
136 Certificate[] otherCertificateChain = other.mCertificateChain; in Signature()
227 final Certificate cert = certFactory.generateCertificate(bais); in getPublicKey()
247 for (Certificate c : mCertificateChain) { in getChainSignatures()
DApkChecksum.java28 import java.security.cert.Certificate;
75 @Nullable String sourcePackageName, @Nullable Certificate sourceCertificate) in ApkChecksum()
109 public @Nullable Certificate getInstallerCertificate() throws CertificateException { in getInstallerCertificate()
/frameworks/base/media/lib/signer/api/
Dcurrent.txt6 …method public static com.android.mediadrm.signer.MediaDrmSigner.Certificate provideCertificateResp…
11 public static final class MediaDrmSigner.Certificate {
/frameworks/base/services/core/java/com/android/server/pm/
DApkChecksums.java87 import java.security.cert.Certificate;
114 private static final Certificate[] EMPTY_CERTIFICATE_ARRAY = {};
264 public static @NonNull Certificate[] verifySignature(Checksum[] checksums, byte[] signature) in verifySignature()
274 final Certificate[] certs = pkcs7.getCertificates(); in verifySignature()
284 ArrayList<Certificate> certificates = new ArrayList<>(signerInfos.length); in verifySignature()
294 return certificates.toArray(new Certificate[certificates.size()]); in verifySignature()
313 @Nullable Certificate[] trustedInstallers, in getChecksums()
391 @Nullable Certificate[] trustedInstallers, in getAvailableApkChecksums()
424 @Nullable Certificate[] trustedInstallers, in getInstallerChecksums()
446 final Certificate[] certificates = verifySignature(digests, in getInstallerChecksums()
[all …]
/frameworks/libs/service_entitlement/tests/utils/com/android/libraries/entitlement/testing/
DFakeURLStreamHandler.java34 import java.security.cert.Certificate;
162 public Certificate[] getLocalCertificates() { in getLocalCertificates()
167 public Certificate[] getServerCertificates() { in getServerCertificates()
/frameworks/base/identity/java/android/security/identity/
DCredstoreWritableIdentityCredential.java24 import java.security.cert.Certificate;
56 Collection<? extends Certificate> certs = null; in getCredentialKeyCertificateChain()
65 for (Certificate cert : certs) { in getCredentialKeyCertificateChain()
DCredstoreIdentityCredential.java35 import java.security.cert.Certificate;
102 Certificate cert = ks.getCertificate(alias); in ensureEphemeralKeyPair()
222 Collection<? extends Certificate> certs = null; in getCredentialKeyCertificateChain()
231 for (Certificate cert : certs) { in getCredentialKeyCertificateChain()
390 Collection<? extends Certificate> certs = null; in getAuthKeysNeedingCertification()
DCredstorePresentationSession.java34 import java.security.cert.Certificate;
84 Certificate cert = ks.getCertificate(alias); in ensureEphemeralKeyPair()
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreSpi.java62 import java.security.cert.Certificate;
166 public Certificate[] engineGetCertificateChain(String alias) { in engineGetCertificateChain()
178 final Certificate[] caList; in engineGetCertificateChain()
185 caList = new Certificate[caChain.size() + 1]; in engineGetCertificateChain()
193 caList = new Certificate[1]; in engineGetCertificateChain()
202 public Certificate engineGetCertificate(String alias) { in engineGetCertificate()
261 public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) in engineSetKeyEntry()
329 private void setPrivateKeyEntry(String alias, PrivateKey key, Certificate[] chain, in setPrivateKeyEntry()
918 public void engineSetKeyEntry(String alias, byte[] userKey, Certificate[] chain) in engineSetKeyEntry()
941 public void engineSetCertificateEntry(String alias, Certificate cert) throws KeyStoreException { in engineSetCertificateEntry()
[all …]
/frameworks/base/core/java/org/apache/http/conn/ssl/
DAbstractVerifier.java37 import java.security.cert.Certificate;
101 Certificate[] certs = session.getPeerCertificates(); in verify()
108 Certificate[] certs = session.getPeerCertificates(); in verify()
/frameworks/base/services/core/java/com/android/server/security/
DAttestationVerificationSelfTrustedVerifierForTesting.java36 import com.android.internal.org.bouncycastle.asn1.x509.Certificate;
216 Certificate certificate = Certificate.getInstance( in getChallengeFromCert()
DFileIntegrityService.java41 import java.security.cert.Certificate;
181 Certificate certificate = sCertFactory.generateCertificate(new ByteArrayInputStream(bytes)); in toCertificate()
/frameworks/base/keystore/java/android/security/keystore/
DAttestationUtils.java32 import java.security.cert.Certificate;
168 Certificate[] certs = keyStore.getCertificateChain(keystoreAlias); in attestDeviceIds()
/frameworks/base/tests/AttestationVerificationTest/src/com/android/server/security/
DAndroidKeystoreAttestationVerificationAttributesTest.java32 import java.security.cert.Certificate;
287 Collection<? extends Certificate> certificates = mFactory.generateCertificates( in generateCertificates()
292 for (Certificate cert : certificates) { in generateCertificates()

123