Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertInstallerReceiver.java80 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 …]
DDirectDelegatedCertInstallerTest.java282 for (byte[] certBuffer : certificates) { in containsCertificate()
283 Certificate cert = readCertificate(certBuffer); in containsCertificate()
291 private static Certificate readCertificate(byte[] certBuffer) throws CertificateException { in readCertificate() argument
293 return certFactory.generateCertificate(new ByteArrayInputStream(certBuffer)); in readCertificate()
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DCertInstallDelegateTest.java97 for (byte[] certBuffer : certificates) { in containsCertificate()
98 Certificate cert = readCertificate(certBuffer); in containsCertificate()
106 private static Certificate readCertificate(byte[] certBuffer) throws CertificateException { in readCertificate() argument
108 return certFactory.generateCertificate(new ByteArrayInputStream(certBuffer)); in readCertificate()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DCaCertManagementTest.java145 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() argument
191 return certFactory.generateCertificate(new ByteArrayInputStream(certBuffer)); in readCertificate()