Home
last modified time | relevance | path

Searched refs:generateCertificate (Results 1 – 17 of 17) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java765 private Certificate generateCertificate(byte[] fakeUser1) throws Exception { in generateCertificate() method in AndroidKeyStoreTest
767 return cf.generateCertificate(new ByteArrayInputStream(fakeUser1)); in generateCertificate()
773 generateCertificate(FAKE_EC_USER_1), generateCertificate(FAKE_EC_CA_1) in makeUserEcKey1()
780 generateCertificate(FAKE_RSA_USER_1), generateCertificate(FAKE_RSA_CA_1) in makeUserRsaKey1()
785 return new KeyStore.TrustedCertificateEntry(generateCertificate(FAKE_RSA_CA_1)); in makeCa1()
866 mKeyStore.setCertificateEntry(TEST_ALIAS_2, generateCertificate(FAKE_RSA_CA_1)); in testKeyStore_DeleteEntry_Unencrypted_Success()
869 mKeyStore.setCertificateEntry(TEST_ALIAS_3, generateCertificate(FAKE_RSA_CA_1)); in testKeyStore_DeleteEntry_Unencrypted_Success()
906 mKeyStore.setCertificateEntry(TEST_ALIAS_1, generateCertificate(FAKE_RSA_CA_1)); in testKeyStore_GetCertificate_Single_Unencrypted_Success()
918 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_GetCertificate_Single_Unencrypted_Success()
933 Certificate cert = generateCertificate(FAKE_RSA_CA_1); in testKeyStore_GetCertificateAlias_CAEntry_Unencrypted_Success()
[all …]
DTestUtils.java417 .generateCertificate(in); in getRawResX509Certificate()
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DCertInstallDelegateTest.java164 Certificate certificate = CertificateFactory.getInstance("X.509").generateCertificate( in testCanAccessApis()
188 return certFactory.generateCertificate(new ByteArrayInputStream(certBuffer)); in readCertificate()
/cts/tests/tests/net/src/android/net/wifi/cts/
DWifiEnterpriseConfigTest.java728 X509Certificate cert1 = (X509Certificate) factory.generateCertificate( in testSettersAndGetters()
730 X509Certificate cert2 = (X509Certificate) factory.generateCertificate( in testSettersAndGetters()
739 X509Certificate clientCert = (X509Certificate) factory.generateCertificate( in testSettersAndGetters()
DFakeKeys.java242 return (X509Certificate) certFactory.generateCertificate(stream); in loadCertificate()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertInstallerReceiver.java129 .generateCertificate( in onReceive()
172 return certFactory.generateCertificate(new ByteArrayInputStream(certBuffer)); in readCertificate()
/cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/
DAdminActionBookkeepingTest.java94 .generateCertificate(new ByteArrayInputStream(rawCert)); in testGetPolicyInstalledCaCerts()
/cts/tests/security/src/android/keystore/cts/
DCertificateUtils.java77 certFactory.generateCertificate( in createCertificate()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java869 (X509Certificate) certFactory.generateCertificate( in getAcceptedIssuers()
892 X509Certificate cert = (X509Certificate) certFactory.generateCertificate( in testClientCertIssuersReceivedCorrectly()
1008 (X509Certificate) certFactory.generateCertificate( in onReceivedClientCertRequest()
1010 (X509Certificate) certFactory.generateCertificate( in onReceivedClientCertRequest()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DCaCertManagementTest.java170 return certFactory.generateCertificate(new ByteArrayInputStream(certBuffer)); in readCertificate()
DDelegatedCertInstallerTest.java188 .generateCertificate(new ByteArrayInputStream(cert)); in testCaCertsOperations()
DKeyManagementTest.java634 return CertificateFactory.getInstance("X.509").generateCertificate( in getCertificate()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DAdminActionBookkeepingTest.java191 .generateCertificate(new ByteArrayInputStream(rawCert)); in testGetPolicyInstalledCaCerts()
/cts/tests/tests/security/src/android/security/cts/
DX509CertChainBuildingTest.java168 return (X509Certificate) certFactory.generateCertificate(in); in loadCertificate()
DCertificateTest.java143 Certificate cert = certFactory.generateCertificate(fis); in loadCertsFromDisk()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java233 chain[0] = f.generateCertificate(res.openRawResource(R.raw.usercert)); in doInBackground()
234 chain[1] = f.generateCertificate(res.openRawResource(R.raw.cacert)); in doInBackground()
/cts/tests/admin/src/android/admin/cts/
DDevicePolicyManagerTest.java964 Certificate cert = cf.generateCertificate( in testSetKeyPairCertificate_failIfNotProfileOwner()