Home
last modified time | relevance | path

Searched refs:certBuffer (Results 1 – 2 of 2) sorted by relevance

/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertInstallerReceiver.java77 byte[] certBuffer; in onReceive()
81 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); in onReceive()
83 if (dpm.hasCaCertInstalled(null, certBuffer)) { in onReceive()
86 if (!dpm.installCaCert(null, certBuffer)) { in onReceive()
89 if (!dpm.hasCaCertInstalled(null, certBuffer)) { in onReceive()
99 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); in onReceive()
100 if (!dpm.hasCaCertInstalled(null, certBuffer)) { in onReceive()
103 dpm.uninstallCaCert(null, certBuffer); in onReceive()
104 sendResult(context, !dpm.hasCaCertInstalled(null, certBuffer), null); in onReceive()
111 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); in onReceive()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DCaCertManagementTest.java137 for (byte[] certBuffer : mDevicePolicyManager.getInstalledCaCerts(getWho())) { in isCaCertInstalledAndTrusted()
138 if (caCert.equals(readCertificate(certBuffer))) { in isCaCertInstalledAndTrusted()
168 private static Certificate readCertificate(byte[] certBuffer) throws CertificateException { in readCertificate() argument
170 return certFactory.generateCertificate(new ByteArrayInputStream(certBuffer)); in readCertificate()