HomeSort by relevance Sort by last modified time
    Searched refs:TestKeyStore (Results 1 - 23 of 23) sorted by null

  /libcore/luni/src/test/java/libcore/java/security/cert/
PKIXParametersTest.java 23 import libcore.java.security.TestKeyStore;
28 TestKeyStore server = TestKeyStore.getServer();
36 KeyStore ks = TestKeyStore.createKeyStore();
43 KeyStore keyOnly = TestKeyStore.createKeyStore();
52 new PKIXParameters(TestKeyStore.createKeyStore());
X509CertSelectorTest.java 27 import libcore.java.security.TestKeyStore;
117 TestKeyStore testKeyStore = new TestKeyStore.Builder()
120 return bouncycastleToJava(testKeyStore.getRootCertificate("RSA"));
125 TestKeyStore testKeyStore = new TestKeyStore.Builder()
130 return bouncycastleToJava(testKeyStore.getRootCertificate("RSA"));
SubjectAlternativeNameTest.java 27 import libcore.java.security.TestKeyStore;
53 Certificate root = new TestKeyStore.Builder()
  /libcore/luni/src/test/java/libcore/javax/net/ssl/
KeyStoreBuilderParametersTest.java 25 import libcore.java.security.TestKeyStore;
37 TestKeyStore testKeyStore = TestKeyStore.getClient();
38 Builder builder = Builder.newInstance(testKeyStore.keyStore,
39 new PasswordProtection(testKeyStore.storePassword));
55 TestKeyStore testKeyStore1 = TestKeyStore.getClient();
56 TestKeyStore testKeyStore2 = TestKeyStore.getServer()
    [all...]
X509KeyManagerTest.java 24 import libcore.java.security.TestKeyStore;
50 TestKeyStore ca = new TestKeyStore.Builder()
53 TestKeyStore client = new TestKeyStore.Builder().keyAlgorithms(clientKeyType)
TrustManagerFactoryTest.java 38 import libcore.java.security.TestKeyStore;
44 private static TestKeyStore TEST_KEY_STORE;
47 private static TestKeyStore getTestKeyStore() throws Exception {
49 TEST_KEY_STORE = new TestKeyStore.Builder()
153 String keyAlgName = TestKeyStore.keyAlgorithm(keyType);
154 String sigAlgName = TestKeyStore.signatureAlgorithm(keyType);
213 PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
220 KeyStore keyStore = TestKeyStore.createKeyStore();
250 KeyStore ks = TestKeyStore.createKeyStore();
285 TestKeyStore intermediateCa = TestKeyStore.getIntermediateCa()
    [all...]
SSLEngineTest.java 29 import libcore.java.security.TestKeyStore;
72 TestKeyStore testKeyStore = new TestKeyStore.Builder()
77 test_SSLEngine_getSupportedCipherSuites_connect(testKeyStore, false);
79 test_SSLEngine_getSupportedCipherSuites_connect(testKeyStore, true);
82 private void test_SSLEngine_getSupportedCipherSuites_connect(TestKeyStore testKeyStore,
85 TestSSLContext c = TestSSLContext.create(testKeyStore, testKeyStore);
    [all...]
KeyManagerFactoryTest.java 38 import libcore.java.security.TestKeyStore;
42 private static TestKeyStore TEST_KEY_STORE;
45 private static TestKeyStore getTestKeyStore() throws Exception {
47 TEST_KEY_STORE = new TestKeyStore.Builder()
240 keyAlgName = TestKeyStore.keyAlgorithm(keyType);
241 sigAlgName = TestKeyStore.signatureAlgorithm(keyType);
SSLSessionTest.java 20 import libcore.java.security.TestKeyStore;
115 TestKeyStore.assertChainLength(s.server.getLocalCertificates());
150 TestKeyStore.assertChainLength(s.client.getPeerCertificateChain());
167 TestKeyStore.assertChainLength(s.client.getPeerCertificates());
SSLSocketTest.java 58 import libcore.java.security.TestKeyStore;
72 TestKeyStore testKeyStore = new TestKeyStore.Builder()
79 test_SSLSocket_getSupportedCipherSuites_connect(testKeyStore,
86 test_SSLSocket_getSupportedCipherSuites_connect(testKeyStore,
92 test_SSLSocket_getSupportedCipherSuites_connect(testKeyStore,
98 test_SSLSocket_getSupportedCipherSuites_connect(testKeyStore,
104 test_SSLSocket_getSupportedCipherSuites_connect(testKeyStore,
116 private void test_SSLSocket_getSupportedCipherSuites_connect(TestKeyStore testKeyStore
    [all...]
  /libcore/crypto/src/test/java/org/conscrypt/
TrustManagerImplTest.java 32 import libcore.java.security.TestKeyStore;
72 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
105 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
119 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
140 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
164 KeyStore keyStore = TestKeyStore.createKeyStore();
178 KeyStore keyStore = TestKeyStore.createKeyStore();
CertPinManagerTest.java 28 import libcore.java.security.TestKeyStore;
59 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
TrustedCertificateStoreTest.java 36 import libcore.java.security.TestKeyStore;
160 CA1 = TestKeyStore.getClient().getRootCertificate("RSA");
161 CA2 = TestKeyStore.getClientCA2().getRootCertificate("RSA");
162 PRIVATE = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
164 CA3_WITH_CA1_SUBJECT = new TestKeyStore.Builder()
446 X509Certificate ca1 = TestKeyStore.createCa(publicKey, privateKey, name);
448 X509Certificate ca2 = TestKeyStore.createCa(publicKey, privateKey, name);
NativeCryptoTest.java 54 import libcore.java.security.TestKeyStore;
117 = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
123 = TestKeyStore.getClientCertificate().getPrivateKey("RSA", "RSA");
128 KeyStore ks = TestKeyStore.getClient().keyStore;
    [all...]
  /libcore/support/src/test/java/libcore/javax/net/ssl/
TestSSLContext.java 40 import libcore.java.security.TestKeyStore;
136 return create(TestKeyStore.getClient(),
137 TestKeyStore.getServer());
143 public static TestSSLContext create(TestKeyStore client, TestKeyStore server) {
147 public static TestSSLContext create(TestKeyStore client, TestKeyStore server,
  /packages/apps/KeyChain/tests/src/com/android/keychain/tests/
KeyChainServiceTest.java 34 import libcore.java.security.TestKeyStore;
160 PrivateKeyEntry pke1 = TestKeyStore.getClientCertificate().getPrivateKey("RSA", "RSA");
162 Certificate root1 = TestKeyStore.getClientCertificate().getRootCertificate("RSA");
171 PrivateKeyEntry pke2 = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
173 Certificate root2 = TestKeyStore.getServer().getRootCertificate("RSA");
KeyChainTestActivity.java 45 import libcore.java.security.TestKeyStore;
61 private TestKeyStore mTestKeyStore;
153 mTestKeyStore = TestKeyStore.getServer();
  /libcore/support/src/test/java/libcore/java/security/
TestKeyStore.java 71 * TestKeyStore is a convenience class for other tests that
75 * accessible via TestKeyStore.get().
77 public final class TestKeyStore extends Assert {
79 private static TestKeyStore ROOT_CA;
80 private static TestKeyStore INTERMEDIATE_CA;
82 private static TestKeyStore SERVER;
83 private static TestKeyStore CLIENT;
84 private static TestKeyStore CLIENT_CERTIFICATE;
86 private static TestKeyStore CLIENT_2;
107 private TestKeyStore(KeyStore keyStore, char[] storePassword, char[] keyPassword)
    [all...]
  /cts/tests/tests/keystore/src/android/keystore/cts/
AndroidKeyPairGeneratorTest.java 56 import libcore.java.security.TestKeyStore;
479 // TestKeyStore.createForClientSelfSigned(...)
481 TrustManager[] clientTrustManagers = TestKeyStore.createTrustManagers(
482 TestKeyStore.getIntermediateCa().keyStore);
487 TestKeyStore serverKeyStore = TestKeyStore.getServer();
491 TestKeyStore.createTrustManagers(serverKeyStore.keyStore));
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
HttpsURLConnectionTest.java 57 import libcore.java.security.TestKeyStore;
678 TestKeyStore.dump("HttpsURLConnection.getContext", ks, KS_PASSWORD.toCharArray());
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
URLConnectionTest.java 73 import libcore.java.security.TestKeyStore;
549 TestSSLContext testSSLContext = TestSSLContext.create(TestKeyStore.getClientCA2(),
550 TestKeyStore.getServer());
    [all...]
  /libcore/luni/src/test/java/libcore/java/security/
KeyStoreTest.java 91 PRIVATE_KEY = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
98 PRIVATE_KEY_2 = TestKeyStore.getClientCertificate().getPrivateKey("RSA", "RSA");
    [all...]
  /libcore/luni/src/test/java/libcore/javax/crypto/
CipherTest.java 62 import libcore.java.security.TestKeyStore;
    [all...]

Completed in 1270 milliseconds