/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...] |
KeyManagerFactoryImpl.java | 24 import java.security.KeyStore; 41 private KeyStore keyStore; 47 * @see KeyManagerFactorySpi#engineInit(KeyStore ks, char[] password) 50 protected void engineInit(KeyStore ks, char[] password) 54 keyStore = ks; 61 keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); 62 String keyStoreName = System.getProperty("javax.net.ssl.keyStore"); [all...] |
/libcore/luni/src/test/java/tests/targets/security/ |
KeyStoreTest.java | 24 import java.security.KeyStore; 25 import java.security.KeyStore.Entry; 26 import java.security.KeyStore.PasswordProtection; 27 import java.security.KeyStore.PrivateKeyEntry; 28 import java.security.KeyStore.ProtectionParameter; 52 KeyStore keyStore = null; 54 keyStore = KeyStore.getInstance(algorithmName); 60 keyStore.load(new ByteArrayInputStream(keyStoreData) [all...] |
/external/apache-harmony/x-net/src/test/java/javax/net/ssl/ |
MyTrustManagerFactorySpi.java | 25 import java.security.KeyStore; 36 protected void engineInit(KeyStore ks) throws KeyStoreException { 38 throw new KeyStoreException("Not supported operation for null KeyStore"); 66 private KeyStore keyStore; 67 public Parameters (KeyStore ks) { 68 this.keyStore = ks; 70 public KeyStore getKeyStore() { 71 return keyStore;
|
MyKeyManagerFactorySpi.java | 25 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;
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
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...] |
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...] |
KeyStore2Test.java | 29 import java.security.KeyStore; 143 KeyStore keyTest = KeyStore.getInstance(KeyStore.getDefaultType()); 162 * java.security.KeyStore#aliases() 166 // java.security.KeyStore.aliases() 172 KeyStore keyTest = KeyStore.getInstance(KeyStore.getDefaultType()); 182 // KeyStore keyTest [all...] |
/libcore/luni/src/test/java/libcore/java/security/ |
KeyStoreTest.java | 28 import java.security.KeyStore; 29 import java.security.KeyStore.Builder; 30 import java.security.KeyStore.Entry; 31 import java.security.KeyStore.LoadStoreParameter; 32 import java.security.KeyStore.PasswordProtection; 33 import java.security.KeyStore.PrivateKeyEntry; 34 import java.security.KeyStore.ProtectionParameter; 35 import java.security.KeyStore.SecretKeyEntry; 36 import java.security.KeyStore.TrustedCertificateEntry; 126 public static List<KeyStore> keyStores() throws Exception [all...] |
/libcore/luni/src/test/java/tests/targets/security/cert/ |
CertPathBuilderTestPKIX.java | 19 import java.security.KeyStore; 43 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); 45 keyStore.load(null, null); 53 keyStore.setCertificateEntry("selfSignedCert", selfSignedcertificate); 68 keyStore, targetConstraints);
|
CertPathValidatorTestPKIX.java | 19 import java.security.KeyStore; 56 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); 57 keyStore.load(null, null); 65 keyStore.setCertificateEntry("selfSignedCert", selfSignedcertificate); 77 PKIXBuilderParameters parameters = new PKIXBuilderParameters(keyStore, 88 params = new PKIXParameters(keyStore);
|
CertificateTest.java | 20 import java.security.KeyStore; [all...] |
/external/apache-harmony/x-net/src/test/support/common/java/org/apache/harmony/xnet/tests/support/ |
MyTrustManagerFactorySpi.java | 21 import java.security.KeyStore; 36 protected void engineInit(KeyStore ks) throws KeyStoreException { 38 throw new KeyStoreException("Not supported operation for null KeyStore"); 66 private KeyStore keyStore; 67 public Parameters (KeyStore ks) { 68 this.keyStore = ks; 70 public KeyStore getKeyStore() { 71 return keyStore;
|
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;
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
MyTrustManagerFactorySpi.java | 21 import java.security.KeyStore; 35 protected void engineInit(KeyStore ks) throws KeyStoreException { 37 throw new KeyStoreException("Not supported operation for null KeyStore"); 63 private KeyStore keyStore; 64 public Parameters (KeyStore ks) { 65 this.keyStore = ks; 67 public KeyStore getKeyStore() { 68 return keyStore;
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
MyTrustManagerFactorySpi.java | 21 import java.security.KeyStore; 35 protected void engineInit(KeyStore ks) throws KeyStoreException { 37 throw new KeyStoreException("Not supported operation for null KeyStore"); 63 private KeyStore keyStore; 64 public Parameters (KeyStore ks) { 65 this.keyStore = ks; 67 public KeyStore getKeyStore() { 68 return keyStore;
|
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;
|
/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/nist-sip/java/gov/nist/core/net/ |
SslNetworkLayer.java | 38 import java.security.KeyStore;
77 KeyStore keyStore = KeyStore.getInstance(keyStoreType);
78 KeyStore trustStore = KeyStore.getInstance(keyStoreType);
79 keyStore.load(new FileInputStream(keyStoreFile), keyStorePassword);
82 kmFactory.init(keyStore, keyStorePassword);
|
/cts/tests/tests/security/src/android/security/cts/ |
CertificateTest.java | 25 import java.security.KeyStore; 116 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); 117 keyStore.load(null, null); 119 List<String> aliases = Collections.list(keyStore.aliases()); 124 assertTrue(keyStore.isCertificateEntry(alias)); 125 X509Certificate certificate = (X509Certificate) keyStore.getCertificate(alias);
|
/development/samples/Vault/src/com/example/android/vault/ |
SecretKeyWrapper.java | 27 import java.security.KeyStore; 37 * the platform {@link KeyStore}. This allows us to protect symmetric keys with 57 final KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); 58 keyStore.load(null); 60 if (!keyStore.containsAlias(alias)) { 66 final KeyStore.PrivateKeyEntry entry = (KeyStore.PrivateKeyEntry) keyStore.getEntry [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
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...] |
/external/okhttp/src/test/java/com/squareup/okhttp/internal/ |
SslContextBuilder.java | 25 import java.security.KeyStore; 71 KeyStore keyStore = newEmptyKeyStore(password); 73 keyStore.setKeyEntry("private", keyPair.getPrivate(), password, certificateChain); 74 keyStore.setCertificateEntry("cert", certificate); 79 keyManagerFactory.init(keyStore, password); 82 trustManagerFactory.init(keyStore); 114 private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { 116 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/export/ |
KeySelectionPage.java | 40 import java.security.KeyStore; 48 * Key Selection Page. This is used when an existing keystore is used. 152 // keystore password is wrong 155 // get the alias list (also used as a keystore password test) 156 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); 158 keyStore.load(fis, mWizard.getKeystorePassword().toCharArray()); 161 Enumeration<String> aliases = keyStore.aliases() [all...] |
/libcore/support/src/test/java/libcore/java/security/ |
TestKeyStore.java | 39 import java.security.KeyStore; 40 import java.security.KeyStore.PasswordProtection; 41 import java.security.KeyStore.PrivateKeyEntry; 42 import java.security.KeyStore.TrustedCertificateEntry; 72 * want a canned KeyStore with a variety of key pairs. 90 // Needed to create BKS keystore but add at end so most 99 public final KeyStore keyStore; 107 private TestKeyStore(KeyStore keyStore, char[] storePassword, char[] keyPassword) [all...] |