Home
last modified time | relevance | path

Searched defs:cert (Results 1 – 25 of 33) sorted by relevance

12

/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39706/src/android/security/cts/CVE_2021_39706/
DPocPolicyManager.java35 public boolean installCaCert(byte[] cert) { in installCaCert()
39 public boolean hasCaCertInstalled(byte[] cert) { in hasCaCertInstalled()
43 public void uninstallCaCert(byte[] cert) { in uninstallCaCert()
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DTestCertificates.java117 public static Certificate userCertFromString(String cert) throws Exception { in userCertFromString()
126 public static Certificate caCertFromString(String cert) throws Exception { in caCertFromString()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDelegatedCertInstallerTest.java264 private void installCaCert(byte[] cert) { in installCaCert()
273 private void removeCaCert(byte[] cert) { in removeCaCert()
282 private void verifyCaCert(byte[] cert) { in verifyCaCert()
314 private void installKeyPair(String key, String cert, String alias) { in installKeyPair()
DKeyManagementTest.java679 X509Certificate cert = createCertificate(generated.getKeyPair(), subject, issuer); in testCanSetKeyPairCert() local
758 private static Certificate getCertificate(byte[] cert) throws CertificateException { in getCertificate()
/cts/tests/tests/identity/src/android/security/identity/cts/
DAttestationTest.java93 X509Certificate cert = certChain.iterator().next(); in attestationTest() local
137 X509Certificate cert = certs[i]; in verifyCertificateChain() local
DX509CertificateSigningTest.java88 X509Certificate cert = Util.signPublicKeyWithPrivateKey(keyToSignAlias, in testSigning() local
DParsedAttestationRecord.java171 public ParsedAttestationRecord(X509Certificate cert) throws IOException { in ParsedAttestationRecord()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2109/
Dpoc.c29 X509 *cert; variable
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertSelectionDelegateTest.java106 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testCanSelectKeychainKeypairs() local
165 private static Certificate getCertificate(byte[] cert) throws CertificateException { in getCertificate()
DCertInstallerReceiver.java124 String cert = intent.getStringExtra(EXTRA_CERT_DATA); in onReceive() local
172 Certificate cert = readCertificate(certBuffer); in containsCertificate() local
DDirectDelegatedCertInstallerTest.java274 private Certificate certificateFromString(String cert) throws Exception { in certificateFromString()
283 Certificate cert = readCertificate(certBuffer); in containsCertificate() local
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DImsiEncryptionInfoTest.java76 private static PublicKey createPublicKey(String cert) throws Exception { in createPublicKey()
/cts/tools/utils/
Dcertificates.py22 cert = None variable in Certificate
24 def __init__(self, cert, key): argument
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20230/src/android/security/cts/CVE_2022_20230/
DPocPolicyManager.java42 public boolean installKeyPair(PrivateKey pkey, Certificate cert, String alias) { in installKeyPair()
DDeviceTest.java321 Certificate cert = cf.generateCertificate(new ByteArrayInputStream(USER_CERT)); in testCVE_2022_20230() local
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/certificates/
DCertificates.java79 public Certificate generateCertificate(byte[] cert) { in generateCertificate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0963/src/android/security/cts/CVE_2021_0963/
DDeviceTest.java111 Certificate cert = cf.generateCertificate(new ByteArrayInputStream(userCertByteArray)); in testOverlayButtonPresence() local
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DAdminActionBookkeepingTest.java147 final Certificate cert = CertificateFactory.getInstance("X.509") in testGetPolicyInstalledCaCerts() local
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java536 SslCertificate cert = mOnUiThread.getCertificate(); in testInsecureSiteClearsCertificate() local
573 SslCertificate cert = mOnUiThread.getCertificate(); in testSecureSiteSetsCertificate() local
921 X509Certificate cert = (X509Certificate) certFactory.generateCertificate( in testClientCertIssuersReceivedCorrectly() local
/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java976 Certificate cert = generateCertificate(FAKE_RSA_CA_1); in testKeyStore_GetCertificateAlias_CAEntry_Unencrypted_Success() local
977 mKeyStore.setCertificateEntry(getTestAlias1(), cert); in testKeyStore_GetCertificateAlias_CAEntry_Unencrypted_Success() local
1162 byte[] cert, byte[] ca) throws Exception { in assertPrivateKeyEntryEquals()
1364 final Certificate cert = generateCertificate(FAKE_RSA_CA_1); in testKeyStore_SetCertificate_CAExists_Overwrite_Unencrypted_Success() local
1367 mKeyStore.setCertificateEntry(getTestAlias1(), cert); in testKeyStore_SetCertificate_CAExists_Overwrite_Unencrypted_Success() local
1380 final Certificate cert = generateCertificate(FAKE_RSA_CA_1); in testKeyStore_SetCertificate_PrivateKeyExists_Unencrypted_Failure() local
1383 mKeyStore.setCertificateEntry(getTestAlias1(), cert); in testKeyStore_SetCertificate_PrivateKeyExists_Unencrypted_Failure() local
1835 Certificate cert = generateCertificate(FAKE_RSA_USER_1); in testKeyStore_SetKeyEntry_ReplacedChain_DifferentPrivateKey_Unencrypted_Failure() local
2734 Certificate cert = generateCertificate(FAKE_RSA_USER_1); in createLargeNumberOfKeyStoreEntryAliases() local
/cts/tests/tests/security/src/android/security/cts/
DCertificateTest.java174 Certificate cert = certFactory.generateCertificate(fis); in loadCertsFromDisk() local
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DKeyChainTestActivity.java145 protected boolean installCertificate(X509Certificate cert, boolean isUserVisible) { in installCertificate()
/cts/tests/tests/apache-http/src/android/net/http/cts/
DSslCertificateTest.java244 X509Certificate cert = new MockX509Certificate(); in testGetX509Certificate() local
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCredentialManagementAppTest.java105 private static Certificate getCertificate(byte[] cert) { in getCertificate()
/cts/tests/admin/src/android/admin/cts/
DDevicePolicyManagerTest.java457 Certificate cert = cf.generateCertificate( in testSetKeyPairCertificate_failIfNotProfileOwner() local

12