/frameworks/base/core/java/android/security/net/config/ |
D | DirectoryCertificateSource.java | 31 import java.security.cert.CertificateException; 32 import java.security.cert.CertificateFactory; 33 import java.security.cert.X509Certificate; 77 X509Certificate cert = readCertificate(caFile); in getCertificates() local 78 if (cert != null) { in getCertificates() 79 certs.add(cert); in getCertificates() 89 public X509Certificate findBySubjectAndPublicKey(final X509Certificate cert) { in findBySubjectAndPublicKey() argument 90 return findCert(cert.getSubjectX500Principal(), new CertSelector() { in findBySubjectAndPublicKey() 93 return ca.getPublicKey().equals(cert.getPublicKey()); in findBySubjectAndPublicKey() 99 public X509Certificate findByIssuerAndSignature(final X509Certificate cert) { [all …]
|
D | KeyStoreCertificateSource.java | 22 import java.security.cert.Certificate; 23 import java.security.cert.X509Certificate; 61 X509Certificate cert = (X509Certificate) mKeyStore.getCertificate(alias); in ensureInitialized() local 62 if (cert != null) { in ensureInitialized() 63 certificates.add(cert); in ensureInitialized() 64 localIndex.index(cert); in ensureInitialized() 76 public X509Certificate findBySubjectAndPublicKey(X509Certificate cert) { in findBySubjectAndPublicKey() argument 78 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey() 86 public X509Certificate findByIssuerAndSignature(X509Certificate cert) { in findByIssuerAndSignature() argument 88 java.security.cert.TrustAnchor anchor = mIndex.findByIssuerAndSignature(cert); in findByIssuerAndSignature() [all …]
|
D | ResourceCertificateSource.java | 23 import java.security.cert.Certificate; 24 import java.security.cert.CertificateException; 25 import java.security.cert.CertificateFactory; 26 import java.security.cert.X509Certificate; 69 for (Certificate cert : certs) { in ensureInitialized() 70 certificates.add((X509Certificate) cert); in ensureInitialized() 71 indexLocal.index((X509Certificate) cert); in ensureInitialized() 86 public X509Certificate findBySubjectAndPublicKey(X509Certificate cert) { in findBySubjectAndPublicKey() argument 88 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey() 96 public X509Certificate findByIssuerAndSignature(X509Certificate cert) { in findByIssuerAndSignature() argument [all …]
|
D | CertificatesEntryRef.java | 20 import java.security.cert.X509Certificate; 40 for (X509Certificate cert : mSource.getCertificates()) { in getTrustAnchors() 41 anchors.add(new TrustAnchor(cert, mOverridesPins)); in getTrustAnchors() 46 public TrustAnchor findBySubjectAndPublicKey(X509Certificate cert) { in findBySubjectAndPublicKey() argument 47 X509Certificate foundCert = mSource.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey() 55 public TrustAnchor findByIssuerAndSignature(X509Certificate cert) { in findByIssuerAndSignature() argument 56 X509Certificate foundCert = mSource.findByIssuerAndSignature(cert); in findByIssuerAndSignature() 64 public Set<X509Certificate> findAllCertificatesByIssuerAndSignature(X509Certificate cert) { in findAllCertificatesByIssuerAndSignature() argument 65 return mSource.findAllByIssuerAndSignature(cert); in findAllCertificatesByIssuerAndSignature()
|
D | TrustedCertificateStoreAdapter.java | 20 import java.security.cert.Certificate; 21 import java.security.cert.X509Certificate; 36 public X509Certificate findIssuer(X509Certificate cert) { in findIssuer() argument 37 TrustAnchor anchor = mConfig.findTrustAnchorByIssuerAndSignature(cert); in findIssuer() 45 public Set<X509Certificate> findAllIssuers(X509Certificate cert) { in findAllIssuers() argument 46 return mConfig.findAllCertificatesByIssuerAndSignature(cert); in findAllIssuers() 50 public X509Certificate getTrustAnchor(X509Certificate cert) { in getTrustAnchor() argument 51 TrustAnchor anchor = mConfig.findTrustAnchorBySubjectAndPublicKey(cert); in getTrustAnchor() 59 public boolean isUserAddedCertificate(X509Certificate cert) { in isUserAddedCertificate() argument 61 TrustAnchor anchor = mConfig.findTrustAnchorBySubjectAndPublicKey(cert); in isUserAddedCertificate()
|
D | NetworkSecurityConfig.java | 24 import java.security.cert.X509Certificate; 86 X509Certificate cert = anchor.certificate; in getTrustAnchors() local 87 if (!anchorMap.containsKey(cert)) { in getTrustAnchors() 88 anchorMap.put(cert, anchor); in getTrustAnchors() 121 public TrustAnchor findTrustAnchorBySubjectAndPublicKey(X509Certificate cert) { in findTrustAnchorBySubjectAndPublicKey() argument 123 TrustAnchor anchor = ref.findBySubjectAndPublicKey(cert); in findTrustAnchorBySubjectAndPublicKey() 132 public TrustAnchor findTrustAnchorByIssuerAndSignature(X509Certificate cert) { in findTrustAnchorByIssuerAndSignature() argument 134 TrustAnchor anchor = ref.findByIssuerAndSignature(cert); in findTrustAnchorByIssuerAndSignature() 143 public Set<X509Certificate> findAllCertificatesByIssuerAndSignature(X509Certificate cert) { in findAllCertificatesByIssuerAndSignature() argument 146 certs.addAll(ref.findAllCertificatesByIssuerAndSignature(cert)); in findAllCertificatesByIssuerAndSignature()
|
D | CertificateSource.java | 19 import java.security.cert.X509Certificate; 25 X509Certificate findBySubjectAndPublicKey(X509Certificate cert); in findBySubjectAndPublicKey() argument 26 X509Certificate findByIssuerAndSignature(X509Certificate cert); in findByIssuerAndSignature() argument 27 Set<X509Certificate> findAllByIssuerAndSignature(X509Certificate cert); in findAllByIssuerAndSignature() argument
|
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | TestCertificateSource.java | 20 import java.security.cert.X509Certificate; 32 for (X509Certificate cert : certificates) { in TestCertificateSource() 33 mIndex.index(cert); in TestCertificateSource() 43 public X509Certificate findBySubjectAndPublicKey(X509Certificate cert) { in findBySubjectAndPublicKey() argument 44 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey() 52 public X509Certificate findByIssuerAndSignature(X509Certificate cert) { in findByIssuerAndSignature() argument 53 java.security.cert.TrustAnchor anchor = mIndex.findByIssuerAndSignature(cert); in findByIssuerAndSignature() 61 public Set<X509Certificate> findAllByIssuerAndSignature(X509Certificate cert) { in findAllByIssuerAndSignature() argument 63 for (java.security.cert.TrustAnchor anchor : mIndex.findAllByIssuerAndSignature(cert)) { in findAllByIssuerAndSignature()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | WfaCertBuilder.java | 24 import java.security.cert.Certificate; 25 import java.security.cert.CertificateException; 26 import java.security.cert.CertificateFactory; 27 import java.security.cert.X509Certificate; 54 Certificate cert = certFactory.generateCertificate(fis); in loadCertsFromDisk() local 55 if (cert instanceof X509Certificate) { in loadCertsFromDisk() 56 certs.add((X509Certificate) cert); in loadCertsFromDisk()
|
D | CertificateVerifier.java | 22 import java.security.cert.CertPath; 23 import java.security.cert.CertPathValidator; 24 import java.security.cert.CertificateFactory; 25 import java.security.cert.PKIXParameters; 26 import java.security.cert.X509Certificate;
|
D | WfaKeyStore.java | 26 import java.security.cert.CertificateException; 27 import java.security.cert.X509Certificate; 55 for (X509Certificate cert : certs) { in load() 56 mKeyStore.setCertificateEntry(String.format("%d", index), cert); in load()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/ |
D | CertUtils.java | 41 import java.security.cert.CertPath; 42 import java.security.cert.CertPathBuilder; 43 import java.security.cert.CertPathBuilderException; 44 import java.security.cert.CertPathValidator; 45 import java.security.cert.CertPathValidatorException; 46 import java.security.cert.CertStore; 47 import java.security.cert.CertificateException; 48 import java.security.cert.CertificateFactory; 49 import java.security.cert.CollectionCertStoreParameters; 50 import java.security.cert.PKIXBuilderParameters; [all …]
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | ParcelUtil.java | 25 import java.security.cert.CertificateEncodingException; 26 import java.security.cert.CertificateException; 27 import java.security.cert.CertificateFactory; 28 import java.security.cert.X509Certificate; 93 public static void writeCertificate(Parcel dest, X509Certificate cert) { in writeCertificate() argument 95 if (cert != null) { in writeCertificate() 97 certBytes = cert.getEncoded(); in writeCertificate()
|
/frameworks/base/identity/java/android/security/identity/ |
D | CredstoreWritableIdentityCredential.java | 24 import java.security.cert.Certificate; 25 import java.security.cert.CertificateException; 26 import java.security.cert.CertificateFactory; 27 import java.security.cert.X509Certificate; 65 for (Certificate cert : certs) { in getCredentialKeyCertificateChain() 66 x509Certs.add((X509Certificate) cert); in getCredentialKeyCertificateChain() 90 X509Certificate cert = profile.getReaderCertificate(); in personalize() local 91 if (cert != null) { in personalize() 93 acpParcels[n].readerCertificate = cert.getEncoded(); in personalize()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointProvisioningTestUtil.java | 31 import java.security.cert.Certificate; 32 import java.security.cert.CertificateException; 33 import java.security.cert.CertificateFactory; 34 import java.security.cert.X509Certificate; 114 for (X509Certificate cert : certs) { in createFakeKeyStore() 115 keyStore.setCertificateEntry(String.format("%d", index), cert); in createFakeKeyStore() 136 Certificate cert = certFactory.generateCertificate(bis); in getOsuCertsForTest() local 137 osuCerts.add((X509Certificate) cert); in getOsuCertsForTest()
|
/frameworks/base/core/java/org/apache/http/conn/ssl/ |
D | AbstractVerifier.java | 37 import java.security.cert.Certificate; 38 import java.security.cert.CertificateParsingException; 39 import java.security.cert.X509Certificate; 118 public final void verify(String host, X509Certificate cert) in verify() argument 120 String[] cns = getCNs(cert); in verify() 121 String[] subjectAlts = getDNSSubjectAlts(cert); in verify() 212 public static String[] getCNs(X509Certificate cert) { in getCNs() argument 214 new AndroidDistinguishedNameParser(cert.getSubjectX500Principal()); in getCNs() 241 public static String[] getDNSSubjectAlts(X509Certificate cert) { in getDNSSubjectAlts() argument 245 c = cert.getSubjectAlternativeNames(); in getDNSSubjectAlts()
|
/frameworks/base/core/java/android/net/http/ |
D | SslError.java | 22 import java.security.cert.X509Certificate; 146 int error, SslCertificate cert, String url) { in SslErrorFromChromiumErrorCode() argument 151 return new SslError(SSL_IDMISMATCH, cert, url); in SslErrorFromChromiumErrorCode() 153 return new SslError(SSL_DATE_INVALID, cert, url); in SslErrorFromChromiumErrorCode() 155 return new SslError(SSL_UNTRUSTED, cert, url); in SslErrorFromChromiumErrorCode() 157 return new SslError(SSL_INVALID, cert, url); in SslErrorFromChromiumErrorCode()
|
/frameworks/base/core/java/android/content/pm/ |
D | Signature.java | 29 import java.security.cert.Certificate; 30 import java.security.cert.CertificateEncodingException; 31 import java.security.cert.CertificateException; 32 import java.security.cert.CertificateFactory; 33 import java.security.cert.X509Certificate; 208 final Certificate cert = certFactory.generateCertificate(bais); in getPublicKey() local 209 return cert.getPublicKey(); in getPublicKey() 351 final X509Certificate cert = (X509Certificate) cf.generateCertificate(is); in bounce() local 352 final Signature sPrime = new Signature(cert.getEncoded()); in bounce()
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | DelegatingX509Certificate.java | 26 import java.security.cert.CertificateEncodingException; 27 import java.security.cert.CertificateException; 28 import java.security.cert.CertificateExpiredException; 29 import java.security.cert.CertificateNotYetValidException; 30 import java.security.cert.CertificateParsingException; 31 import java.security.cert.X509Certificate;
|
/frameworks/base/services/tests/servicestests/assets/PackageSignaturesTest/xml/ |
D | README | 9 --cert certs/ec-p256.x509.der --key certs/ec-p256.pk8 25 <cert index="16" key="3082016c30820111a003020102020900ca0fb64dfb66e772300a06082a8648ce3d 46 --cert certs/ec-p256.x509.der --key certs/ec-p256.pk8 --next-signer --cert \ 51 --cert certs/ec-p256.x509.der --key certs/ec-p256.pk8 --next-signer --cert \ 57 --cert certs/ec-p256.x509.der --key certs/ec-p256.pk8 --next-signer --cert \
|
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/ |
D | CertPinInstallReceiverTest.java | 35 import java.security.cert.CertificateFactory; 36 import java.security.cert.Certificate; 37 import java.security.cert.X509Certificate; 176 String signature, X509Certificate cert) throws Exception { in verifySignature() argument 178 signer.initVerify(cert); in verifySignature() 195 private String runTest(String cert, String content, String version, String required, String sig) in runTest() argument 198 overrideCert(cert); in runTest() 205 private String runTestWithoutSig(String cert, String content, String version, String required) in runTestWithoutSig() argument 208 return runTest(cert, content, version, required, sig); in runTestWithoutSig()
|
/frameworks/base/core/java/android/util/apk/ |
D | WrappedX509Certificate.java | 26 import java.security.cert.CertificateEncodingException; 27 import java.security.cert.CertificateException; 28 import java.security.cert.CertificateExpiredException; 29 import java.security.cert.CertificateNotYetValidException; 30 import java.security.cert.X509Certificate;
|
/frameworks/base/core/java/android/security/keystore/recovery/ |
D | RecoveryCertPath.java | 26 import java.security.cert.CertPath; 27 import java.security.cert.CertificateEncodingException; 28 import java.security.cert.CertificateException; 29 import java.security.cert.CertificateFactory;
|
D | X509CertificateParsingUtils.java | 21 import java.security.cert.CertificateException; 22 import java.security.cert.CertificateFactory; 23 import java.security.cert.X509Certificate;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CarrierKeyDownloadManager.java | 58 import java.security.cert.CertificateFactory; 59 import java.security.cert.X509Certificate; 452 String cert = null; in parseJsonAndPersistKey() local 454 cert = key.getString(JSON_CERTIFICATE); in parseJsonAndPersistKey() 456 cert = key.getString(JSON_CERTIFICATE_ALTERNATE); in parseJsonAndPersistKey() 471 getKeyInformation(cleanCertString(cert).getBytes()); in parseJsonAndPersistKey() 564 X509Certificate cert = (X509Certificate) cf.generateCertificate(inStream); in getKeyInformation() local 566 new Pair(cert.getPublicKey(), cert.getNotAfter().getTime()); in getKeyInformation() 593 public static String cleanCertString(String cert) { in cleanCertString() argument 594 return cert.substring( in cleanCertString() [all …]
|