/libcore/crypto/src/main/java/org/conscrypt/ |
TrustManagerFactoryImpl.java | 22 import java.security.KeyStore; 38 private KeyStore keyStore; 41 * @see javax.net.ssl.TrustManagerFactorySpi#engineInit(KeyStore) 44 public void engineInit(KeyStore ks) throws KeyStoreException { 46 keyStore = ks; 48 keyStore = KeyStore.getInstance("AndroidCAStore"); 50 keyStore.load(null, null); 76 if (keyStore == null) [all...] |
DefaultSSLContextImpl.java | 26 import java.security.KeyStore; 67 // find KeyStore, KeyManagers 68 String keystore = System.getProperty("javax.net.ssl.keyStore"); local 69 if (keystore == null) { 75 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); 78 is = new BufferedInputStream(new FileInputStream(keystore)); 100 String keystore = System.getProperty("javax.net.ssl.trustStore") local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KSPasswordProtectionTest.java | 25 import java.security.KeyStore; 32 * Tests for <code>KeyStore.PasswordProtection</code> class constructor and methods 38 * Test for <code>KeyStore.PasswordProtection(char[] password)</code> constructor 49 KeyStore.PasswordProtection ksPWP = new KeyStore.PasswordProtection(pass); 66 ksPWP = new KeyStore.PasswordProtection(null);
|
KeyStoreTest.java | 26 import java.security.KeyStore; 55 * Tests for <code>KeyStore</code> constructor and methods 62 private static final String defaultType = "KeyStore"; 70 private static String NotSupportMsg = "Default KeyStore type is not supported"; 74 public KeyStore[] createKS() throws Exception { 76 KeyStore[] kpg = new KeyStore[3]; 78 kpg[0] = KeyStore.getInstance(defaultType); 79 kpg[1] = KeyStore.getInstance(defaultType, defaultProvider); 80 kpg[2] = KeyStore.getInstance(defaultType, defaultProviderName) [all...] |
KeyStore4Test.java | 15 import java.security.KeyStore; 23 import java.security.KeyStore.Entry; 24 import java.security.KeyStore.ProtectionParameter; 31 KeyStore keyStore; 32 KeyStore uninitialized; 33 KeyStore failing; 43 keyStore = KeyStore.getInstance(KEY_STORE_TYPE); 44 keyStore.load(null, "PASSWORD".toCharArray()) [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
KeyManagerFactorySpi.java | 21 import java.security.KeyStore; 52 protected abstract void engineInit(KeyStore ks, char[] password) throws KeyStoreException,
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
KeyStore2Test.java | 28 import java.security.KeyStore; 140 KeyStore keyTest = KeyStore.getInstance(KeyStore.getDefaultType()); 159 * @tests java.security.KeyStore#aliases() 163 // java.security.KeyStore.aliases() 169 KeyStore keyTest = KeyStore.getInstance(KeyStore.getDefaultType()); 172 // KeyStore keyTest [all...] |
KeyStoreTest.java | 25 import java.security.KeyStore; 55 * Tests for <code>KeyStore</code> constructor and methods 63 private static final String defaultType = "KeyStore"; 71 private static String NotSupportMsg = "Default KeyStore type is not supported"; 75 public KeyStore[] createKS() throws Exception { 77 KeyStore[] kpg = new KeyStore[3]; 79 kpg[0] = KeyStore.getInstance(defaultType); 80 kpg[1] = KeyStore.getInstance(defaultType, defaultProvider); 81 kpg[2] = KeyStore.getInstance(defaultType, defaultProviderName) [all...] |
/frameworks/base/keystore/tests/src/android/security/ |
KeyStoreTest.java | 21 import android.security.KeyStore; 32 * Junit / Instrumentation test case for KeyStore class 36 * runtest keystore-unit 40 * runtest --path frameworks/base/keystore/tests/src/android/security/KeyStoreTest.java 63 private KeyStore mKeyStore = null; 118 mKeyStore = KeyStore.getInstance(); 119 if (mKeyStore.state() != KeyStore.State.UNINITIALIZED) { 122 assertEquals("KeyStore should be in an uninitialized state", 123 KeyStore.State.UNINITIALIZED, mKeyStore.state()); 134 assertEquals(KeyStore.State.UNINITIALIZED, mKeyStore.state()) [all...] |
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
KeyStoreBuilderParametersTest.java | 20 import java.security.KeyStore; 22 import java.security.KeyStore.Builder; 36 class EmptyBuilder extends KeyStore.Builder { 38 public KeyStore getKeyStore() throws KeyStoreException { 43 public KeyStore.ProtectionParameter getProtectionParameter(String alias) 50 * Class under test for void KeyStoreBuilderParameters(KeyStore.Builder) 54 new KeyStoreBuilderParameters((KeyStore.Builder) null); 82 KeyStore.Builder builder = new EmptyBuilder();
|
/packages/apps/KeyChain/support/src/com/android/keychain/tests/support/ |
KeyChainServiceTestSupport.java | 24 import android.security.KeyStore; 30 private final KeyStore mKeyStore = KeyStore.getInstance(); 44 return mKeyStore.put(key, value, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED); 48 return mKeyStore.importKey(key, value, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED);
|
/external/apache-harmony/x-net/src/test/impl/java/org/apache/harmony/xnet/tests/provider/jsse/ |
TrustManagerFactoryImplTest.java | 21 import java.security.KeyStore; 38 * Class under test for void engineInit(KeyStore) 42 tmf.engineInit((KeyStore) null); 47 tmf.engineInit((KeyStore) null); 80 KeyStore ks; 81 ks = KeyStore.getInstance("BKS");
|
/external/apache-harmony/x-net/src/test/support/common/java/org/apache/harmony/xnet/provider/jsse/ |
JSSETestData.java | 21 import java.security.KeyStore; 41 private static KeyStore keyStore; 46 String ksDefaultType = KeyStore.getDefaultType(); 50 keyStore = KeyStore.getInstance(ksDefaultType); 51 keyStore.load(is, KS_PASSWORD); 54 kmf.init(keyStore, KS_PASSWORD); 57 tmf.init(keyStore); 86 public static KeyStore getKeyStore() throws Exception [all...] |
/external/apache-harmony/x-net/src/test/support/common/java/org/apache/harmony/xnet/tests/support/ |
MyKeyManagerFactorySpi.java | 21 import java.security.KeyStore; 39 protected void engineInit(KeyStore ks, char[] password) 46 throw new UnrecoverableKeyException("Incorrect keystore"); 73 private KeyStore keyStore; 75 public Parameters (KeyStore ks, char[] pass) { 76 this.keyStore = ks; 79 public KeyStore getKeyStore() { 80 return keyStore;
|
/frameworks/base/core/tests/coretests/src/android/net/http/ |
X509TrustManagerExtensionsTest.java | 19 import java.security.KeyStore; 53 String defaultType = KeyStore.getDefaultType(); 54 TrustManagerImpl tmi = new TrustManagerImpl(KeyStore.getInstance(defaultType)); 61 String defaultKeystoreType = KeyStore.getDefaultType(); 62 tmf.init(KeyStore.getInstance(defaultKeystoreType));
|
/libcore/luni/src/test/java/tests/security/cert/ |
PKIXBuilderParametersTest.java | 30 import java.security.KeyStore; 177 * Test #1 for <code>PKIXBuilderParameters(KeyStore, CertSelector)</code> 180 * <code>keystore</code> is <code>null</code> 185 new PKIXBuilderParameters((KeyStore) null, new X509CertSelector()); 193 * Test #2 for <code>PKIXBuilderParameters(KeyStore, CertSelector)</code> 196 * <code>keystore</code> has not been initialized 200 KeyStore keyTest = KeyStore.getInstance(KeyStore.getDefaultType()); 210 * Test #3 for <code>PKIXBuilderParameters(KeyStore, CertSelector)</code [all...] |
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
MyKeyManagerFactorySpi.java | 21 import java.security.KeyStore; 38 protected void engineInit(KeyStore ks, char[] password) 45 throw new UnrecoverableKeyException("Incorrect keystore"); 70 private KeyStore keyStore; 72 public Parameters (KeyStore ks, char[] pass) { 73 this.keyStore = ks; 76 public KeyStore getKeyStore() { 77 return keyStore;
|
TrustManagerFactorySpiImpl.java | 4 import java.security.KeyStore; 14 private static KeyStore ks = null; 17 public void engineInit(KeyStore ks) throws KeyStoreException {
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
KeyStoreBuilderParametersTest.java | 20 import java.security.KeyStore; 29 * javax.net.ssl.KeyStoreBuilderParameters#KeyStoreBuilderParameters(KeyStore.Builder builder) 34 new KeyStoreBuilderParameters((KeyStore.Builder) null); 40 KeyStore.ProtectionParameter pp = new ProtectionParameterImpl(); 41 KeyStore.Builder bld = KeyStore.Builder.newInstance("testType", null, pp); 42 assertNotNull("Null object KeyStore.Builder", bld); 97 private static class ProtectionParameterImpl implements KeyStore.ProtectionParameter {
|
TrustManagerFactorySpiTest.java | 20 import java.security.KeyStore; 51 * javax.net.ssl.TrustManagerFactorySpi#engineInit(KeyStore ks) 59 KeyStore ks = null; 61 ks = KeyStore.getInstance(KeyStore.getDefaultType()); 70 tmf.init((KeyStore) null); 88 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); 116 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()) [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
KeyStore_Impl1Test.java | 26 import java.security.KeyStore; 46 * Tests for <code>KeyStore</code> constructor and methods 65 private static String NotSupportMsg = "Default KeyStore type is not supported"; 67 public KeyStore[] createKS() throws Exception { 69 KeyStore[] kpg = new KeyStore[3]; 71 kpg[0] = KeyStore.getInstance(defaultType); 72 kpg[1] = KeyStore.getInstance(defaultType, defaultProvider); 73 kpg[2] = KeyStore.getInstance(defaultType, defaultProviderName); 84 KeyStore ks [all...] |
KeyStore_Impl2Test.java | 26 import java.security.KeyStore; 48 * Tests for <code>KeyStore</code> constructor and methods 57 private static final String defaultAlg = "KeyStore"; 67 validValues[2] = "kEyStOrE"; 68 validValues[3] = "KeysTORE"; 89 private void checkResult(KeyStore keyS) throws KeyStoreException, 120 KeyStore.TrustedCertificateEntry entry = new KeyStore.TrustedCertificateEntry( 155 KeyStore.LoadStoreParameter lParam = new MyLoadStoreParams( 156 new KeyStore.PasswordProtection(new char[0])); [all...] |
/external/apache-harmony/x-net/src/test/java/javax/net/ssl/ |
KeyManagerFactorySpiTests.java | 25 import java.security.KeyStore; 58 KeyStore kStore = null; 82 kStore = KeyStore.getInstance(KeyStore.getDefaultType()); 85 fail("default keystore type is not supported");
|
TrustManagerFactorySpiTests.java | 25 import java.security.KeyStore; 55 KeyStore kStore = null; 72 kStore = KeyStore.getInstance(KeyStore.getDefaultType()); 75 fail("default keystore is not supported");
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
PKIXParametersTest.java | 21 import java.security.KeyStore; 29 KeyStore.PrivateKeyEntry pke = server.getPrivateKey("RSA", "RSA"); 33 assertEquals(2, new PKIXParameters(server.keyStore).getTrustAnchors().size()); 36 KeyStore ks = TestKeyStore.createKeyStore(); 43 KeyStore keyOnly = TestKeyStore.createKeyStore(); 50 // should fail with empty KeyStore
|