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/
DCertInstallerActivity.java81 byte[] certBuffer; in onCreate()
85 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); in onCreate()
87 if (dpm.hasCaCertInstalled(null, certBuffer)) { in onCreate()
90 if (!dpm.installCaCert(null, certBuffer)) { in onCreate()
93 if (!dpm.hasCaCertInstalled(null, certBuffer)) { in onCreate()
103 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); in onCreate()
104 if (!dpm.hasCaCertInstalled(null, certBuffer)) { in onCreate()
107 dpm.uninstallCaCert(null, certBuffer); in onCreate()
108 sendResult(!dpm.hasCaCertInstalled(null, certBuffer), null); in onCreate()
115 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); in onCreate()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DCaCertManagementTest.java72 for (byte[] certBuffer : certificates) { in containsCertificate()
73 Certificate cert = readCertificate(certBuffer); in containsCertificate()
81 private static Certificate readCertificate(byte[] certBuffer) throws CertificateException { in readCertificate() argument
83 return certFactory.generateCertificate(new ByteArrayInputStream(certBuffer)); in readCertificate()