Home
last modified time | relevance | path

Searched refs:keyStore (Results 1 – 25 of 31) sorted by relevance

12

/external/jetty/src/java/org/eclipse/jetty/util/security/
DCertificateValidator.java95 public void validate( KeyStore keyStore ) throws CertificateException in validate() argument
99 Enumeration<String> aliases = keyStore.aliases(); in validate()
105 validate(keyStore,alias); in validate()
124 public String validate(KeyStore keyStore, String keyAlias) throws CertificateException in validate() argument
132 validate(keyStore, keyStore.getCertificate(keyAlias)); in validate()
153 public void validate(KeyStore keyStore, Certificate cert) throws CertificateException in validate() argument
164 if (keyStore == null) in validate()
169 certAlias = keyStore.getCertificateAlias((X509Certificate)cert); in validate()
173 keyStore.setCertificateEntry(certAlias, cert); in validate()
176 certChain = keyStore.getCertificateChain(certAlias); in validate()
/external/conscrypt/src/platform/java/org/conscrypt/
DTrustManagerFactoryImpl.java38 private KeyStore keyStore; field in TrustManagerFactoryImpl
46 keyStore = ks; in engineInit()
48 keyStore = KeyStore.getInstance("AndroidCAStore"); in engineInit()
50 keyStore.load(null, null); in engineInit()
76 if (keyStore == null) { in engineGetTrustManagers()
80 return new TrustManager[] { new TrustManagerImpl(keyStore) }; in engineGetTrustManagers()
DTrustManagerImpl.java117 public TrustManagerImpl(KeyStore keyStore) { in TrustManagerImpl() argument
118 this(keyStore, null); in TrustManagerImpl()
124 public TrustManagerImpl(KeyStore keyStore, CertPinManager manager) { in TrustManagerImpl() argument
125 this(keyStore, manager, null); in TrustManagerImpl()
131 public TrustManagerImpl(KeyStore keyStore, CertPinManager manager, in TrustManagerImpl() argument
133 this(keyStore, manager, certStore, null); in TrustManagerImpl()
139 public TrustManagerImpl(KeyStore keyStore, CertPinManager manager, in TrustManagerImpl() argument
154 if ("AndroidCAStore".equals(keyStore.getType())) { in TrustManagerImpl()
155 rootKeyStoreLocal = keyStore; in TrustManagerImpl()
163 acceptedIssuersLocal = acceptedIssuers(keyStore); in TrustManagerImpl()
/external/conscrypt/src/main/java/org/conscrypt/
DKeyManagerFactoryImpl.java41 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()
DKeyManagerImpl.java61 public KeyManagerImpl(KeyStore keyStore, char[] pwd) { in KeyManagerImpl() argument
65 aliases = keyStore.aliases(); in KeyManagerImpl()
72 if (keyStore.entryInstanceOf(alias, KeyStore.PrivateKeyEntry.class)) { in KeyManagerImpl()
73 final KeyStore.PrivateKeyEntry entry = (KeyStore.PrivateKeyEntry) keyStore in KeyManagerImpl()
/external/apache-harmony/x-net/src/test/support/common/java/org/apache/harmony/xnet/provider/jsse/
DJSSETestData.java41 private static KeyStore keyStore; field in JSSETestData
50 keyStore = KeyStore.getInstance(ksDefaultType);
51 keyStore.load(is, KS_PASSWORD); in keyStore.load()
54 kmf.init(keyStore, KS_PASSWORD); in kmf.init() argument
57 tmf.init(keyStore);
90 return keyStore; in getKeyStore()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/
DSslContextBuilder.java89 KeyStore keyStore = newEmptyKeyStore(password); in build() local
91 keyStore.setKeyEntry("private", keyPair.getPrivate(), password, certificateChain); in build()
92 keyStore.setCertificateEntry("cert", certificate); in build()
97 keyManagerFactory.init(keyStore, password); in build()
100 trustManagerFactory.init(keyStore); in build()
135 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in newEmptyKeyStore() local
137 keyStore.load(in, password); in newEmptyKeyStore()
138 return keyStore; in newEmptyKeyStore()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DCustomTrust.java169 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/src/test/java/org/conscrypt/
DTrustManagerImplTest.java174 KeyStore keyStore = TestKeyStore.createKeyStore(); in trustManager() local
175 keyStore.setCertificateEntry("alias", ca); in trustManager()
177 return new TrustManagerImpl(keyStore); in trustManager()
185 KeyStore keyStore = TestKeyStore.createKeyStore(); in trustManager() local
186 keyStore.setCertificateEntry("alias", ca); in trustManager()
187 return new TrustManagerImpl(keyStore, cm); in trustManager()
197 KeyStore keyStore = TestKeyStore.createKeyStore(); in trustManagerUserInstalled() local
198 keyStore.setCertificateEntry("alias", caKeyStore); in trustManagerUserInstalled()
210 return new TrustManagerImpl(keyStore, cm, tcs); in trustManagerUserInstalled()
DNativeCryptoTest.java143 KeyStore ks = TestKeyStore.getClient().keyStore; in initCerts()
/external/apache-harmony/x-net/src/test/java/javax/net/ssl/
DMyTrustManagerFactorySpi.java65 private KeyStore keyStore; field in MyTrustManagerFactorySpi.Parameters
68 this.keyStore = ks; in Parameters()
72 return keyStore; in getKeyStore()
DMyKeyManagerFactorySpi.java73 private KeyStore keyStore; field in MyKeyManagerFactorySpi.Parameters
77 this.keyStore = ks; in Parameters()
82 return keyStore; in getKeyStore()
/external/apache-harmony/x-net/src/test/support/common/java/org/apache/harmony/xnet/tests/support/
DMyTrustManagerFactorySpi.java65 private KeyStore keyStore; field in MyTrustManagerFactorySpi.Parameters
68 this.keyStore = ks; in Parameters()
72 return keyStore; in getKeyStore()
DMyKeyManagerFactorySpi.java73 private KeyStore keyStore; field in MyKeyManagerFactorySpi.Parameters
77 this.keyStore = ks; in Parameters()
82 return keyStore; in getKeyStore()
/external/jetty/src/java/org/eclipse/jetty/util/ssl/
DSslContextFactory.java264 KeyStore keyStore = loadKeyStore(); in doStart() local
269 if (_validateCerts && keyStore != null) in doStart()
273 List<String> aliases = Collections.list(keyStore.aliases()); in doStart()
277 Certificate cert = _certAlias == null?null:keyStore.getCertificate(_certAlias); in doStart()
288 validator.validate(keyStore, cert); in doStart()
291 KeyManager[] keyManagers = getKeyManagers(keyStore); in doStart()
1073 protected KeyManager[] getKeyManagers(KeyStore keyStore) throws Exception in getKeyManagers() argument
1077 if (keyStore != null) in getKeyManagers()
1080 …keyManagerFactory.init(keyStore,_keyManagerPassword == null?(_keyStorePassword == null?null:_keySt… in getKeyManagers()
1340 public void setKeyStore(KeyStore keyStore) in setKeyStore() argument
[all …]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DKeyStoreTest.java249 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in testEngineEntryInstanceOf() local
250 keyStore.load(null, "pwd".toCharArray()); in testEngineEntryInstanceOf()
259 keyStore.setKeyEntry(alias, secretKey, "pwd".toCharArray(), null); in testEngineEntryInstanceOf()
262 assertTrue(keyStore.entryInstanceOf(alias, in testEngineEntryInstanceOf()
266 assertFalse(keyStore.entryInstanceOf(alias, in testEngineEntryInstanceOf()
DKeyStore2Test.java470 byte[] keyStore = creatCertificate(); in test_loadLjava_io_InputStream$C()
472 InputStream in = new ByteArrayInputStream(keyStore); in test_loadLjava_io_InputStream$C()
484 in = new ByteArrayInputStream(keyStore); in test_loadLjava_io_InputStream$C()
/external/nist-sip/java/gov/nist/core/net/
DSslNetworkLayer.java77 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/guice/extensions/struts2/lib/
Djetty-6.1.0.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/mortbay/ org/ ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.mortbay.jetty.server_6.1.23.v201004211559.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
Dorg.eclipse.osgi_3.6.2.R36x_v20101103.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
Dorg.eclipse.osgi_3.6.1.R36x_v20100806.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/robolectric/v3/runtime/
Dandroid-all-4.3_r2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.2.2_r1.2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
/external/icu/tools/srcgen/currysrc/libs/
Dorg.eclipse.osgi_3.10.100.v20150529-1857.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSE_.SF META-INF/ECLIPSE_ ...

12