/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/java/security/ |
D | TestKeyStore.java | 167 public final KeyStore keyStore; field in TestKeyStore 174 private TestKeyStore(KeyStore keyStore, char[] storePassword, char[] keyPassword) { in TestKeyStore() argument 175 this.keyStore = keyStore; in TestKeyStore() 178 this.keyManagers = createKeyManagers(keyStore, storePassword); in TestKeyStore() 179 this.trustManagers = createTrustManagers(keyStore); in TestKeyStore() 183 public static KeyManager[] createKeyManagers(KeyStore keyStore, char[] storePassword) { in createKeyManagers() argument 187 kmf.init(keyStore, storePassword); in createKeyManagers() 194 public static TrustManager[] createTrustManagers(final KeyStore keyStore) { in createTrustManagers() argument 198 tmf.init(keyStore); in createTrustManagers() 249 CLIENT = new TestKeyStore(createClient(INTERMEDIATE_CA.keyStore), null, null); in initCerts() [all …]
|
/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/ |
D | TestKeyStore.java | 165 public final KeyStore keyStore; field in TestKeyStore 172 private TestKeyStore(KeyStore keyStore, char[] storePassword, char[] keyPassword) { in TestKeyStore() argument 173 this.keyStore = keyStore; in TestKeyStore() 176 this.keyManagers = createKeyManagers(keyStore, storePassword); in TestKeyStore() 177 this.trustManagers = createTrustManagers(keyStore); in TestKeyStore() 181 public static KeyManager[] createKeyManagers(KeyStore keyStore, char[] storePassword) { in createKeyManagers() argument 185 kmf.init(keyStore, storePassword); in createKeyManagers() 192 public static TrustManager[] createTrustManagers(final KeyStore keyStore) { in createTrustManagers() argument 196 tmf.init(keyStore); in createTrustManagers() 247 CLIENT = new TestKeyStore(createClient(INTERMEDIATE_CA.keyStore), null, null); in initCerts() [all …]
|
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/ |
D | SslContextBuilder.java | 93 KeyStore keyStore = newEmptyKeyStore(password); in build() local 100 keyStore.setKeyEntry("private", chain[0].keyPair.getPrivate(), password, certificates); in build() 104 keyStore.setCertificateEntry("cert_" + i, trustedCertificates.get(i)); in build() 110 keyManagerFactory.init(keyStore, password); in build() 113 trustManagerFactory.init(keyStore); in build() 122 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in newEmptyKeyStore() local 124 keyStore.load(in, password); in newEmptyKeyStore() 125 return keyStore; in newEmptyKeyStore()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | KeyManagerFactoryImpl.java | 43 private KeyStore keyStore; field in KeyManagerFactoryImpl 56 keyStore = ks; in engineInit() 63 keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in engineInit() 68 keyStore.load(null, null); in engineInit() 82 keyStore.load(new FileInputStream(new File(keyStoreName)), pwd); in engineInit() 112 if (keyStore == null) { in engineGetKeyManagers() 115 return new KeyManager[] { new KeyManagerImpl(keyStore, pwd) }; in engineGetKeyManagers()
|
D | TrustManagerFactoryImpl.java | 55 private KeyStore keyStore; field in TrustManagerFactoryImpl 63 keyStore = ks; in engineInit() 65 keyStore = Platform.getDefaultCertKeyStore(); in engineInit() 84 if (keyStore == null) { in engineGetTrustManagers() 88 return new TrustManager[] { new TrustManagerImpl(keyStore) }; in engineGetTrustManagers()
|
D | TrustManagerImpl.java | 157 public TrustManagerImpl(KeyStore keyStore) { in TrustManagerImpl() argument 158 this(keyStore, null); in TrustManagerImpl() 161 public TrustManagerImpl(KeyStore keyStore, CertPinManager manager) { in TrustManagerImpl() argument 162 this(keyStore, manager, null); in TrustManagerImpl() 166 public TrustManagerImpl(KeyStore keyStore, CertPinManager manager, in TrustManagerImpl() argument 168 this(keyStore, manager, certStore, null); in TrustManagerImpl() 171 public TrustManagerImpl(KeyStore keyStore, CertPinManager manager, in TrustManagerImpl() argument 174 this(keyStore, manager, certStore, blacklist, null, null, null); in TrustManagerImpl() 180 public TrustManagerImpl(KeyStore keyStore, CertPinManager manager, in TrustManagerImpl() argument 195 if ("AndroidCAStore".equals(keyStore.getType()) in TrustManagerImpl() [all …]
|
D | KeyManagerImpl.java | 59 KeyManagerImpl(KeyStore keyStore, char[] pwd) { in KeyManagerImpl() argument 63 aliases = keyStore.aliases(); in KeyManagerImpl() 70 if (keyStore.entryInstanceOf(alias, KeyStore.PrivateKeyEntry.class)) { in KeyManagerImpl() 71 final KeyStore.PrivateKeyEntry entry = (KeyStore.PrivateKeyEntry) keyStore in KeyManagerImpl()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | KeyManagerFactoryImpl.java | 41 private KeyStore keyStore; field in KeyManagerFactoryImpl 54 keyStore = ks; in engineInit() 61 keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in engineInit() 66 keyStore.load(null, null); in engineInit() 80 keyStore.load(new FileInputStream(new File(keyStoreName)), pwd); in engineInit() 110 if (keyStore == null) { in engineGetKeyManagers() 113 return new KeyManager[] { new KeyManagerImpl(keyStore, pwd) }; in engineGetKeyManagers()
|
D | TrustManagerFactoryImpl.java | 53 private KeyStore keyStore; field in TrustManagerFactoryImpl 61 keyStore = ks; in engineInit() 63 keyStore = Platform.getDefaultCertKeyStore(); in engineInit() 82 if (keyStore == null) { in engineGetTrustManagers() 86 return new TrustManager[] { new TrustManagerImpl(keyStore) }; in engineGetTrustManagers()
|
D | TrustManagerImpl.java | 152 public TrustManagerImpl(KeyStore keyStore) { in TrustManagerImpl() argument 153 this(keyStore, null); in TrustManagerImpl() 156 public TrustManagerImpl(KeyStore keyStore, CertPinManager manager) { in TrustManagerImpl() argument 157 this(keyStore, manager, null); in TrustManagerImpl() 160 public TrustManagerImpl(KeyStore keyStore, CertPinManager manager, in TrustManagerImpl() argument 162 this(keyStore, manager, certStore, null); in TrustManagerImpl() 165 public TrustManagerImpl(KeyStore keyStore, CertPinManager manager, in TrustManagerImpl() argument 168 this(keyStore, manager, certStore, blacklist, null, null, null); in TrustManagerImpl() 174 public TrustManagerImpl(KeyStore keyStore, CertPinManager manager, in TrustManagerImpl() argument 189 if ("AndroidCAStore".equals(keyStore.getType()) in TrustManagerImpl() [all …]
|
D | KeyManagerImpl.java | 58 KeyManagerImpl(KeyStore keyStore, char[] pwd) { in KeyManagerImpl() argument 62 aliases = keyStore.aliases(); in KeyManagerImpl() 69 if (keyStore.entryInstanceOf(alias, KeyStore.PrivateKeyEntry.class)) { in KeyManagerImpl() 70 final KeyStore.PrivateKeyEntry entry = (KeyStore.PrivateKeyEntry) keyStore in KeyManagerImpl()
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
D | CustomTrust.java | 169 KeyStore keyStore = newEmptyKeyStore(password); in sslContextForTrustedCertificates() local 173 keyStore.setCertificateEntry(certificateAlias, certificate); in sslContextForTrustedCertificates() 179 keyManagerFactory.init(keyStore, password); in sslContextForTrustedCertificates() 182 trustManagerFactory.init(keyStore); in sslContextForTrustedCertificates() 194 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in newEmptyKeyStore() local 196 keyStore.load(in, password); in newEmptyKeyStore() 197 return keyStore; in newEmptyKeyStore()
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/ |
D | TestSSLContext.java | 347 return new TestSSLContext(client != null ? client.keyStore : null, in build() 348 clientStorePassword, server != null ? server.keyStore : null, in build() 391 public static void assertCertificateInKeyStore(Principal principal, KeyStore keyStore) in assertCertificateInKeyStore() argument 395 for (String alias : Collections.list(keyStore.aliases())) { in assertCertificateInKeyStore() 396 if (!keyStore.isCertificateEntry(alias)) { in assertCertificateInKeyStore() 399 X509Certificate keyStoreCertificate = (X509Certificate) keyStore.getCertificate(alias); in assertCertificateInKeyStore() 407 public static void assertCertificateInKeyStore(Certificate certificate, KeyStore keyStore) in assertCertificateInKeyStore() argument 410 for (String alias : Collections.list(keyStore.aliases())) { in assertCertificateInKeyStore() 411 if (!keyStore.isCertificateEntry(alias)) { in assertCertificateInKeyStore() 414 Certificate keyStoreCertificate = keyStore.getCertificate(alias); in assertCertificateInKeyStore()
|
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/ |
D | TestSSLContext.java | 342 return new TestSSLContext(client != null ? client.keyStore : null, in build() 343 clientStorePassword, server != null ? server.keyStore : null, in build() 386 public static void assertCertificateInKeyStore(Principal principal, KeyStore keyStore) in assertCertificateInKeyStore() argument 390 for (String alias : Collections.list(keyStore.aliases())) { in assertCertificateInKeyStore() 391 if (!keyStore.isCertificateEntry(alias)) { in assertCertificateInKeyStore() 394 X509Certificate keyStoreCertificate = (X509Certificate) keyStore.getCertificate(alias); in assertCertificateInKeyStore() 402 public static void assertCertificateInKeyStore(Certificate certificate, KeyStore keyStore) in assertCertificateInKeyStore() argument 405 for (String alias : Collections.list(keyStore.aliases())) { in assertCertificateInKeyStore() 406 if (!keyStore.isCertificateEntry(alias)) { in assertCertificateInKeyStore() 409 Certificate keyStoreCertificate = keyStore.getCertificate(alias); in assertCertificateInKeyStore()
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/ |
D | TrustManagerFactoryTest.java | 113 PKIXParameters pp = new PKIXParameters(getTestKeyStore().keyStore); in test_TrustManagerFactory() 123 PKIXBuilderParameters pbp = new PKIXBuilderParameters(getTestKeyStore().keyStore, xcs); in test_TrustManagerFactory() 142 tmf.init(getTestKeyStore().keyStore); in test_TrustManagerFactory() 239 KeyStore keyStore = TestKeyStore.createKeyStore(); in test_TrustManagerFactory_intermediate() local 240 keyStore.setCertificateEntry("alias", chain[1]); in test_TrustManagerFactory_intermediate() 252 tmf.init(keyStore); in test_TrustManagerFactory_intermediate()
|
D | KeyStoreBuilderParametersTest.java | 66 testKeyStore.keyStore, new PasswordProtection(testKeyStore.storePassword)); in test_init_Builder() 89 testKeyStore1.keyStore, new PasswordProtection(testKeyStore1.storePassword)); in test_init_List() 91 testKeyStore2.keyStore, new PasswordProtection(testKeyStore2.storePassword)); in test_init_List()
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/ |
D | TrustManagerFactoryTest.java | 117 PKIXParameters pp = new PKIXParameters(getTestKeyStore().keyStore); in test_TrustManagerFactory() 127 PKIXBuilderParameters pbp = new PKIXBuilderParameters(getTestKeyStore().keyStore, xcs); in test_TrustManagerFactory() 146 tmf.init(getTestKeyStore().keyStore); in test_TrustManagerFactory() 243 KeyStore keyStore = TestKeyStore.createKeyStore(); in test_TrustManagerFactory_intermediate() local 244 keyStore.setCertificateEntry("alias", chain[1]); in test_TrustManagerFactory_intermediate() 256 tmf.init(keyStore); in test_TrustManagerFactory_intermediate()
|
D | KeyStoreBuilderParametersTest.java | 70 testKeyStore.keyStore, new PasswordProtection(testKeyStore.storePassword)); in test_init_Builder() 93 testKeyStore1.keyStore, new PasswordProtection(testKeyStore1.storePassword)); in test_init_List() 95 testKeyStore2.keyStore, new PasswordProtection(testKeyStore2.storePassword)); in test_init_List()
|
D | X509KeyManagerTest.java | 68 kmf.init(client.keyStore, client.keyPassword); in test_ChooseClientAlias_KeyType()
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
D | VpnFacade.java | 58 static List<VpnProfile> loadVpnProfiles(KeyStore keyStore, int... excludeTypes) { in loadVpnProfiles() argument 61 for (String key : keyStore.list(Credentials.VPN)) { in loadVpnProfiles() 62 final VpnProfile profile = VpnProfile.decode(key, keyStore.get(Credentials.VPN + key)); in loadVpnProfiles()
|
/external/nist-sip/java/gov/nist/core/net/ |
D | SslNetworkLayer.java | 77 KeyStore keyStore = KeyStore.getInstance(keyStoreType); in SslNetworkLayer() local 79 keyStore.load(new FileInputStream(keyStoreFile), keyStorePassword); in SslNetworkLayer() 82 kmFactory.init(keyStore, keyStorePassword); in SslNetworkLayer()
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | ConscryptEngineTest.java | 416 Provider provider, TestKeyStore keyStore, boolean client) { in newEngine() argument 417 SSLContext serverContext = newContext(provider, keyStore); in newEngine() 527 private static SSLContext newContext(Provider provider, TestKeyStore keyStore) { in newContext() argument 530 return initSslContext(ctx, keyStore); in newContext()
|
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/ |
D | ConscryptEngineTest.java | 423 Provider provider, TestKeyStore keyStore, boolean client) { in newEngine() argument 424 SSLContext serverContext = newContext(provider, keyStore); in newEngine() 534 private static SSLContext newContext(Provider provider, TestKeyStore keyStore) { in newContext() argument 537 return initSslContext(ctx, keyStore); in newContext()
|
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/ |
D | TrustManagerImplTest.java | 217 KeyStore keyStore = TestKeyStore.createKeyStore(); in trustManager() local 218 keyStore.setCertificateEntry("alias", ca); in trustManager() 220 return new TrustManagerImpl(keyStore); in trustManager()
|
/external/conscrypt/common/src/test/java/org/conscrypt/ |
D | TrustManagerImplTest.java | 210 KeyStore keyStore = TestKeyStore.createKeyStore(); in trustManager() local 211 keyStore.setCertificateEntry("alias", ca); in trustManager() 213 return new TrustManagerImpl(keyStore); in trustManager()
|