Home
last modified time | relevance | path

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

12

/packages/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/
DX509UtilsTest.java49 X509Certificate[] certs = new X509Certificate[3]; in testFormatX509Certs() local
50 certs[2] = signPublicKey(root, root.getPublic()); in testFormatX509Certs()
51 certs[1] = signPublicKey(root, intermediate.getPublic()); in testFormatX509Certs()
52 certs[0] = signPublicKey(intermediate, leaf.getPublic()); in testFormatX509Certs()
54 for (int i = 0; i < certs.length; i++) { in testFormatX509Certs()
55 os.write(certs[i].getEncoded()); in testFormatX509Certs()
58 assertEquals(certs.length, roundTrip.length); in testFormatX509Certs()
59 for (int i = 0; i < certs.length; i++) { in testFormatX509Certs()
61 certs[i].getEncoded(), roundTrip[i].getEncoded()); in testFormatX509Certs()
DServerToSystemTest.java87 Certificate[] certs = keyStore.getCertificateChain(spec.getKeystoreAlias()); in generateKeyStoreKey() local
89 return certs; in generateKeyStoreKey()
/packages/modules/Wifi/framework/java/android/net/wifi/
DParcelUtil.java135 public static void writeCertificates(Parcel dest, X509Certificate[] certs) { in writeCertificates() argument
136 if (certs == null || certs.length == 0) { in writeCertificates()
141 dest.writeInt(certs.length); in writeCertificates()
142 for (int i = 0; i < certs.length; i++) { in writeCertificates()
143 writeCertificate(dest, certs[i]); in writeCertificates()
159 X509Certificate[] certs = new X509Certificate[length]; in readCertificates() local
161 certs[i] = readCertificate(in); in readCertificates()
163 return certs; in readCertificates()
DWifiEnterpriseConfig.java838 public void setCaCertificates(@Nullable X509Certificate[] certs) { in setCaCertificates() argument
839 if (certs != null) { in setCaCertificates()
840 X509Certificate[] newCerts = new X509Certificate[certs.length]; in setCaCertificates()
841 for (int i = 0; i < certs.length; i++) { in setCaCertificates()
842 if (certs[i].getBasicConstraints() >= 0) { in setCaCertificates()
843 newCerts[i] = certs[i]; in setCaCertificates()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCredentialHelper.java134 ArrayList<byte[]> certs = new ArrayList<byte[]>(mCaCerts.size() + 1); in onSaveStates() local
136 certs.add(mUserCert.getEncoded()); in onSaveStates()
139 certs.add(cert.getEncoded()); in onSaveStates()
141 outStates.putByteArray(CERTS_KEY, Util.toBytes(certs)); in onSaveStates()
158 ArrayList<byte[]> certs = Util.fromBytes(savedStates.getByteArray(CERTS_KEY)); in onRestoreStates() local
159 for (byte[] cert : certs) { in onRestoreStates()
437 Certificate[] certs = entry.getCertificateChain(); in installFrom() local
438 Log.d(TAG, "# certs extracted = " + certs.length); in installFrom()
439 mCaCerts = new ArrayList<X509Certificate>(certs.length); in installFrom()
440 for (Certificate c : certs) { in installFrom()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DWfaCertBuilder.java44 Set<X509Certificate> certs = new HashSet<>(); in loadCertsFromDisk() local
49 return certs; in loadCertsFromDisk()
56 certs.add((X509Certificate) cert); in loadCertsFromDisk()
63 return certs; in loadCertsFromDisk()
DWfaKeyStore.java51 Set<X509Certificate> certs = WfaCertBuilder.loadCertsFromDisk(DEFAULT_WFA_CERT_DIR); in load() local
52 for (X509Certificate cert : certs) { in load()
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DKeyChainActivityTest.java216 Certificate[] certs = new Certificate[3]; in prepareKeyStoreWithLongChainCertificates() local
217 certs[0] = parseCertificate(mLeafRsaCertificate); in prepareKeyStoreWithLongChainCertificates()
218 certs[1] = parseCertificate(mIntermediateRsaCertificate); in prepareKeyStoreWithLongChainCertificates()
219 certs[2] = parseCertificate(mRootRsaCertificate); in prepareKeyStoreWithLongChainCertificates()
222 null, certs); in prepareKeyStoreWithLongChainCertificates()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java287 final Certificate[] certs = mKeyStore.getCertificateChain(alias);
288 if (certs == null || certs.length <= 1) return null;
290 for (int i = 1; i < certs.length; ++i) {
291 outputStream.write(certs[i].getEncoded());
388 final ArrayList<Certificate> certs = new ArrayList<>();
391 certs.add(parseCertificate(userCertificate));
394 certs.addAll(parseCertificates(userCertificateChain));
401 final Certificate[] certsArray = certs.toArray(new Certificate[0]);
553 final ArrayList<Certificate> certs = new ArrayList<>();
556 certs.add(parseCertificate(userCertificate));
[all …]
DKeyChainActivity.java775 final Certificate[] certs; in loadCertificateChain() local
779 certs = keyStore.getCertificateChain(alias); in loadCertificateChain()
788 for (int i = isCertificateEntry ? 0 : 1; i < certs.length; ++i) { in loadCertificateChain()
789 if (certs[i] instanceof X509Certificate) { in loadCertificateChain()
790 result.add((X509Certificate) certs[i]); in loadCertificateChain()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java191 final List<String> certs = mDpm.getOwnerInstalledCaCerts(new UserHandle(MY_USER_ID)); in getNumberOfOwnerInstalledCaCertsForCurrentUser() local
192 if (certs == null) { in getNumberOfOwnerInstalledCaCertsForCurrentUser()
195 return certs.size(); in getNumberOfOwnerInstalledCaCertsForCurrentUser()
204 final List<String> certs = mDpm.getOwnerInstalledCaCerts(new UserHandle(userId)); in getNumberOfOwnerInstalledCaCertsForManagedProfile() local
205 if (certs == null) { in getNumberOfOwnerInstalledCaCertsForManagedProfile()
208 return certs.size(); in getNumberOfOwnerInstalledCaCertsForManagedProfile()
DCaCertsPreferenceControllerBase.java39 final int certs = getNumberOfCaCerts(); in updateState() local
41 R.plurals.enterprise_privacy_number_ca_certs, certs, certs)); in updateState()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java192 final List<String> certs = mDpm.getOwnerInstalledCaCerts(new UserHandle(MY_USER_ID)); in getNumberOfOwnerInstalledCaCertsForCurrentUser() local
193 if (certs == null) { in getNumberOfOwnerInstalledCaCertsForCurrentUser()
196 return certs.size(); in getNumberOfOwnerInstalledCaCertsForCurrentUser()
205 final List<String> certs = mDpm.getOwnerInstalledCaCerts(new UserHandle(userId)); in getNumberOfOwnerInstalledCaCertsForManagedProfile() local
206 if (certs == null) { in getNumberOfOwnerInstalledCaCertsForManagedProfile()
209 return certs.size(); in getNumberOfOwnerInstalledCaCertsForManagedProfile()
DCaCertsPreferenceControllerBase.java39 final int certs = getNumberOfCaCerts(); in updateState() local
41 R.plurals.enterprise_privacy_number_ca_certs, certs, certs)); in updateState()
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/
DX509Utils.java46 ArrayList<Certificate> certs = new ArrayList<Certificate>(fact.generateCertificates(in)); in formatX509Certs() local
47 return certs.toArray(new X509Certificate[certs.size()]); in formatX509Certs()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProvisioningTestUtil.java111 List<X509Certificate> certs = getOsuCertsForTest(); in createFakeKeyStore() local
112 for (X509Certificate cert : certs) { in createFakeKeyStore()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp42 static bssl::UniquePtr<X509> stringToX509Certs(const char* certs) { in stringToX509Certs() argument
43 bssl::UniquePtr<BIO> bio(BIO_new_mem_buf(certs, strlen(certs))); in stringToX509Certs()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController2.java1503 ArrayList<String> certs = new ArrayList<String>(); in loadCertificates() local
1504 certs.add(mUnspecifiedCertString); in loadCertificates()
1506 certs.add(mMultipleCertSetString); in loadCertificates()
1509 certs.add(mUseSystemCertsString); in loadCertificates()
1510 certs.add(mInstallCertsString); in loadCertificates()
1514 certs.addAll(choices.stream() in loadCertificates()
1527 certs.add(noCertificateString); in loadCertificates()
1531 if (certs.size() == 2) { in loadCertificates()
1532 certs.remove(mUnspecifiedCertString); in loadCertificates()
1539 certs.toArray(new String[certs.size()])); in loadCertificates()
DWifiConfigController.java1524 ArrayList<String> certs = new ArrayList<String>(); in loadCertificates() local
1525 certs.add(mUnspecifiedCertString); in loadCertificates()
1527 certs.add(mMultipleCertSetString); in loadCertificates()
1530 certs.add(mUseSystemCertsString); in loadCertificates()
1534 certs.addAll(choices.stream() in loadCertificates()
1547 certs.add(noCertificateString); in loadCertificates()
1551 if (certs.size() == 2) { in loadCertificates()
1552 certs.remove(mUnspecifiedCertString); in loadCertificates()
1559 certs.toArray(new String[certs.size()])); in loadCertificates()
/packages/apps/Settings/src/com/android/settings/
DUserCredentialsSettings.java335 Certificate[] certs = keyStore.getCertificateChain(alias); in getCredentialsForUid() local
336 if (certs != null) { in getCredentialsForUid()
338 if (certs.length > 1) { in getCredentialsForUid()
/packages/apps/Car/DebuggingRestrictionController/
D.gitignore10 certs/
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiKeyStore.java187 public boolean putUserPrivKeyAndCertsInKeyStore(String alias, Key key, Certificate[] certs) { in putUserPrivKeyAndCertsInKeyStore() argument
189 mKeyStore.setKeyEntry(alias, key, null, certs); in putUserPrivKeyAndCertsInKeyStore()
/packages/modules/Wifi/OsuLogin/
DAndroid.bp21 certificate: "certs/com.android.hotspot2.osulogin"
/packages/modules/Wifi/service/ServiceWifiResources/
DAndroid.bp40 certificate: "resources-certs/com.android.wifi.resources"
/packages/modules/Connectivity/service/ServiceConnectivityResources/
DAndroid.bp39 certificate: "resources-certs/com.android.connectivity.resources",

12