Searched refs:certBuffer (Results 1 – 4 of 4) sorted by relevance
80 byte[] certBuffer; in onReceive()84 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); in onReceive()86 if (dpm.hasCaCertInstalled(null, certBuffer)) { in onReceive()89 if (!dpm.installCaCert(null, certBuffer)) { in onReceive()92 if (!dpm.hasCaCertInstalled(null, certBuffer)) { in onReceive()102 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); in onReceive()103 if (!dpm.hasCaCertInstalled(null, certBuffer)) { in onReceive()106 dpm.uninstallCaCert(null, certBuffer); in onReceive()107 sendResult(context, !dpm.hasCaCertInstalled(null, certBuffer), null); in onReceive()114 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); in onReceive()[all …]
282 for (byte[] certBuffer : certificates) { in containsCertificate()283 Certificate cert = readCertificate(certBuffer); in containsCertificate()291 private static Certificate readCertificate(byte[] certBuffer) throws CertificateException { in readCertificate() argument293 return certFactory.generateCertificate(new ByteArrayInputStream(certBuffer)); in readCertificate()
97 for (byte[] certBuffer : certificates) { in containsCertificate()98 Certificate cert = readCertificate(certBuffer); in containsCertificate()106 private static Certificate readCertificate(byte[] certBuffer) throws CertificateException { in readCertificate() argument108 return certFactory.generateCertificate(new ByteArrayInputStream(certBuffer)); in readCertificate()
145 for (byte[] certBuffer : mDevicePolicyManager.getInstalledCaCerts(mAdmin)) { in isCaCertInstalledAndTrusted()146 if (caCert.equals(readCertificate(certBuffer))) { in isCaCertInstalledAndTrusted()189 private static Certificate readCertificate(byte[] certBuffer) throws CertificateException { in readCertificate() argument191 return certFactory.generateCertificate(new ByteArrayInputStream(certBuffer)); in readCertificate()