HomeSort by relevance Sort by last modified time
    Searched refs:TestKeyStore (Results 1 - 20 of 20) 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;
51 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...]
TrustManagerFactoryTest.java 37 import libcore.java.security.TestKeyStore;
43 private static TestKeyStore TEST_KEY_STORE;
46 private static TestKeyStore getTestKeyStore() throws Exception {
48 TEST_KEY_STORE = new TestKeyStore.Builder()
149 String keyAlgName = TestKeyStore.keyAlgorithm(keyType);
150 String sigAlgName = TestKeyStore.signatureAlgorithm(keyType);
210 PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
217 KeyStore keyStore = TestKeyStore.createKeyStore();
247 KeyStore ks = TestKeyStore.createKeyStore();
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);
SSLSocketTest.java 50 import libcore.java.security.TestKeyStore;
64 TestKeyStore testKeyStore = new TestKeyStore.Builder()
70 test_SSLSocket_getSupportedCipherSuites_connect(testKeyStore,
76 test_SSLSocket_getSupportedCipherSuites_connect(testKeyStore,
81 test_SSLSocket_getSupportedCipherSuites_connect(testKeyStore,
86 test_SSLSocket_getSupportedCipherSuites_connect(testKeyStore,
91 test_SSLSocket_getSupportedCipherSuites_connect(testKeyStore,
99 private void test_SSLSocket_getSupportedCipherSuites_connect(TestKeyStore testKeyStore
    [all...]
SSLSessionTest.java 20 import libcore.java.security.TestKeyStore;
100 TestKeyStore.assertChainLength(s.server.getLocalCertificates());
135 TestKeyStore.assertChainLength(s.client.getPeerCertificateChain());
152 TestKeyStore.assertChainLength(s.client.getPeerCertificates());
  /libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/
TrustManagerImplTest.java 26 import libcore.java.security.TestKeyStore;
37 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
67 KeyStore keyStore = TestKeyStore.createKeyStore();
TrustedCertificateStoreTest.java 34 import libcore.java.security.TestKeyStore;
158 CA1 = TestKeyStore.getClient().getRootCertificate("RSA");
159 CA2 = TestKeyStore.getClientCA2().getRootCertificate("RSA");
160 PRIVATE = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
162 CA3_WITH_CA1_SUBJECT = new TestKeyStore.Builder()
435 X509Certificate ca1 = TestKeyStore.createCa(publicKey, privateKey, name);
437 X509Certificate ca2 = TestKeyStore.createCa(publicKey, privateKey, name);
NativeCryptoTest.java 42 import libcore.java.security.TestKeyStore;
95 = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
101 = TestKeyStore.getClientCertificate().getPrivateKey("RSA", "RSA");
106 KeyStore ks = TestKeyStore.getClient().keyStore;
    [all...]
  /libcore/luni/src/test/java/libcore/javax/crypto/
CipherTest.java 24 import libcore.java.security.TestKeyStore;
105 return new TestKeyStore.Builder()
  /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 69 * TestKeyStore is a convenience class for other tests that
73 * accessible via TestKeyStore.get().
75 public final class TestKeyStore extends Assert {
77 private static TestKeyStore ROOT_CA;
79 private static TestKeyStore SERVER;
80 private static TestKeyStore CLIENT;
81 private static TestKeyStore CLIENT_CERTIFICATE;
83 private static TestKeyStore CLIENT_2;
104 private TestKeyStore(KeyStore keyStore, char[] storePassword, char[] keyPassword) {
148 TestKeyStore intermediateCa = new Builder(
    [all...]
  /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 79 import libcore.java.security.TestKeyStore;
534 TestSSLContext testSSLContext = TestSSLContext.create(TestKeyStore.getClientCA2(),
535 TestKeyStore.getServer());
    [all...]
  /libcore/luni/src/test/java/libcore/java/security/
KeyStoreTest.java 88 PRIVATE_KEY = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
95 PRIVATE_KEY_2 = TestKeyStore.getClientCertificate().getPrivateKey("RSA", "RSA");
    [all...]

Completed in 536 milliseconds