/cts/tools/utils/ |
D | certificates.py | 21 class Certificate(object): class 49 return Certificate(cert, key) 77 return Certificate(cert, key) 81 a = Certificate.create("Root A") 82 a_sha1 = Certificate.create("Root A", key=a.key, digest="sha1") 83 b = Certificate.create("Root B") 84 a_to_b = Certificate.create("Root A", b, a.key) 85 b_to_a = Certificate.create("Root B", a, b.key) 86 leaf1 = Certificate.create("Leaf", a) 87 intermediate_a = Certificate.create("intermediate", a) [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | KeyManagementTest.java | 39 import java.security.cert.Certificate; 89 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testCanInstallAndRemoveValidRsaKeypair() 113 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testCanInstallWithAutomaticAccess() 116 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, in testCanInstallWithAutomaticAccess() 118 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, in testCanInstallWithAutomaticAccess() 140 final Collection<Certificate> certs = loadCertificatesFromAsset("user-cert-chain.crt"); in testCanInstallCertChain() 141 final Certificate[] certChain = certs.toArray(new Certificate[certs.size()]); in testCanInstallCertChain() 172 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testGrantsDoNotPersistBetweenInstallations() 175 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, in testGrantsDoNotPersistBetweenInstallations() 186 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, in testGrantsDoNotPersistBetweenInstallations() [all …]
|
D | CaCertManagementTest.java | 24 import java.security.cert.Certificate; 97 Certificate caCert = readCertificate(caBytes); in assertInstalled() 103 Certificate caCert = readCertificate(caBytes); in assertUninstalled() 132 private boolean isCaCertInstalledAndTrusted(Certificate caCert) in isCaCertInstalledAndTrusted() 168 private static Certificate readCertificate(byte[] certBuffer) throws CertificateException { in readCertificate()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AndroidKeyStoreTest.java | 48 import java.security.cert.Certificate; 756 private Certificate generateCertificate(byte[] fakeUser1) throws Exception { in generateCertificate() 763 new Certificate[] { in makeUserEcKey1() 770 new Certificate[] { in makeUserRsaKey1() 904 Certificate retrieved = mKeyStore.getCertificate(TEST_ALIAS_1); in testKeyStore_GetCertificate_Single_Unencrypted_Success() 909 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_GetCertificate_Single_Unencrypted_Success() 924 Certificate cert = generateCertificate(FAKE_RSA_CA_1); in testKeyStore_GetCertificateAlias_CAEntry_Unencrypted_Success() 938 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_USER_1)); in testKeyStore_GetCertificateAlias_PrivateKeyEntry_Unencrypted_Success() 948 Certificate actual = generateCertificate(FAKE_RSA_CA_1); in testKeyStore_GetCertificateAlias_CAEntry_WithPrivateKeyUsingCA_Unencrypted_Success() 965 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_GetCertificateAlias_NonExist_Empty_Unencrypted_Failure() [all …]
|
D | KeyAttestationTest.java | 71 import java.security.cert.Certificate; 201 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation_NoChallenge() 295 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testRsaAttestation_NoChallenge() 391 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testRsaAttestation() 445 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation() 825 private void verifyCertificateSignatures(Certificate[] certChain) in verifyCertificateSignatures()
|
D | TestUtils.java | 42 import java.security.cert.Certificate; 143 Certificate cert; in assertKeyStoreKeyPair() 168 Certificate[] chain = privEntry.getCertificateChain(); in assertKeyStoreKeyPair() 405 Certificate certificate, in importIntoAndroidKeyStore() 410 new KeyStore.PrivateKeyEntry(privateKey, new Certificate[] {certificate}), in importIntoAndroidKeyStore() 432 Certificate originalCert = TestUtils.getRawResX509Certificate(context, certResId); in importIntoAndroidKeyStore()
|
D | KeyPairGeneratorTest.java | 41 import java.security.cert.Certificate; 1296 private static void assertSelfSignedCertificateSignatureVerifies(Certificate certificate) { in assertSelfSignedCertificateSignatureVerifies() 1355 Certificate[] certificateChain) throws Exception { in assertUsableForTLSPeerAuthentication() 1423 Future<Certificate[]> future = executor.submit(new Callable<Certificate[]>() { in assertSSLConnectionWithClientAuth() 1425 public Certificate[] call() throws Exception { in assertSSLConnectionWithClientAuth() 1437 Certificate[] usedServerCerts = client.getSession().getPeerCertificates(); in assertSSLConnectionWithClientAuth() 1438 Certificate[] usedClientCerts = future.get(); in assertSSLConnectionWithClientAuth()
|
D | KeyStoreTest.java | 42 import java.security.cert.Certificate; 374 public static void setCertificate(KeyStore ks, String alias, Certificate certificate) in setCertificate() 417 public static void assertCertificate(Certificate actual) in assertCertificate() 421 public static void assertCertificate2(Certificate actual) in assertCertificate2() 432 public static void assertCertificateChain(Certificate[] actual) in assertCertificateChain() 2497 Certificate c = null; in test_KeyStore_cacerts()
|
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
D | CertInstallerReceiver.java | 32 import java.security.cert.Certificate; 128 Certificate certificate = CertificateFactory.getInstance("X.509") in onReceive() 160 Certificate certificateToMatch = readCertificate(toMatch); in containsCertificate() 162 Certificate cert = readCertificate(certBuffer); in containsCertificate() 170 private static Certificate readCertificate(byte[] certBuffer) throws CertificateException { in readCertificate()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | ConscryptIntermediateVerificationTest.java | 23 import java.security.cert.Certificate; 40 Collection<? extends Certificate> certs; in loadCertificates() 52 for (Certificate cert : certs) { in loadCertificates()
|
/cts/tests/tests/net/src/android/net/http/cts/ |
D | X509TrustManagerExtensionsTest.java | 22 import java.security.cert.Certificate; 51 for (Certificate cert : tm.getAcceptedIssuers()) { in testIsUserAddedCertificateDefaults()
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-resourcesrc/src/android/security/net/config/cts/ |
D | ResourceSourceTest.java | 25 import java.security.cert.Certificate; 77 for (Certificate cert : factory.generateCertificates(is)) { in loadCertificates()
|
/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/ |
D | TestUtils.java | 27 import java.security.cert.Certificate; 85 for (Certificate c : factory.generateCertificates(is)) { in loadCertificates()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | KeyChainTest.java | 51 import java.security.cert.Certificate; 209 final Certificate[] chain = new Certificate[2]; in doInBackground()
|
/cts/tests/tests/security/res/raw/ |
D | openssl_heartbleed_test_cert.pem | 26 Certificate:
|
/cts/tools/dex-tools/dex/ |
D | classes0.out.dex | 24022 public java.security.cert.Certificate[] getCertificates() 24790 @dalvik.annotation.Signature (value =()Ljava/util/List<Ljava/security/cert/Certificate;>; ) 24796 @dalvik.annotation.Signature (value =()Ljava/util/List<Ljava/security/cert/Certificate;>; ) 31567 public abstract interface class java.security.Certificate extends java.lang.Object 31629 private transient java.security.cert.Certificate[] certs 31646 java.security.cert.Certificate[]) 31648 private java.security.cert.Certificate[] getCertificatesNoClone() 31649 @dalvik.annotation.Signature (value =(Ljava/util/List<+Ljava/security/cert/Certificate;>;)Ljava/sec… 31662 public final java.security.cert.Certificate[] getCertificates() 31846 @dalvik.annotation.Signature (value =Ljava/util/Vector<Ljava/security/Certificate;>; ) [all …]
|
D | classes.out.dex | 24086 private java.security.cert.Certificate[] loadCertificates( 44291 java.security.cert.Certificate[]) 46215 java.security.cert.Certificate[])
|