Searched refs:store (Results 1 - 23 of 23) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DSSLSessionTest.java80 KeyStore store = server.getStore();
81 X509Certificate cert = (X509Certificate)store.getCertificate("mykey");
159 KeyStore store = client.getStore();
160 Certificate cert = store.getCertificate("mykey");
170 KeyStore store = client.getStore();
171 X509Certificate cert = (X509Certificate)store.getCertificate("mykey");
507 private KeyStore store; field in class:SSLSessionTest.TestServer
516 store = provideKeys ? getKeyStore(keys) : null;
517 KeyManager[] keyManagers = store != null ? getKeyManagers(store)
588 private KeyStore store; field in class:SSLSessionTest.TestClient
[all...]
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DOldPKIXParametersTest.java182 KeyStore store = KeyStore.getInstance("PKCS12");
187 PKIXParameters p = new PKIXParameters(store);
192 store = KeyStore.getInstance("PKCS12");
193 store.load(stream, new String(KeyStoreTestPKCS12.keyStorePassword)
198 PKIXParameters p = new PKIXParameters(store);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DPropertiesTest.java659 * java.util.Properties#store(java.io.OutputStream, java.lang.String)
662 // Test for method void java.util.Properties.store(java.io.OutputStream,
675 myProps.store(out, "A Header");
697 * java.util.Properties#store(java.io.Writer, java.lang.String)
709 myProps.store(new OutputStreamWriter(out), "A Header");
727 myProps.store((Writer) null, "some comments");
735 myProps.store(new OutputStreamWriter(new ByteArrayOutputStream()),
742 myProps.store(new OutputStreamWriter(new ByteArrayOutputStream()),
747 myProps.store(new OutputStreamWriter(new ByteArrayOutputStream()),
830 // store i
[all...]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKeyStore4Test.java286 keyStore.store(os, password);
298 keyStore.store(os, null);
311 keyStore.store(os, "".toCharArray());
324 keyStore.store(null, null);
337 uninitialized.store(null, null);
356 keyStore.store(new KeyStore.LoadStoreParameter() {
372 keyStore.store(null);
385 keyStore.store(new KeyStore.LoadStoreParameter() {
404 keyStore.store(new KeyStore.LoadStoreParameter() {
420 keyStore.store(ne
[all...]
H A DKeyStore3Test.java84 mockKeyStore.store(null);
92 mockKeyStore.store(null);
H A DKeyStoreTest.java106 * <code>store(LoadStoreParameter param)</code>
125 kss[i].store(null);
136 kss[i].store(lParam);
184 * default security key store type or "jks" string
H A DKeyStore2Test.java155 keyTest.store(out, pssWord);
906 * java.security.KeyStore#store(KeyStore.LoadStoreParameter)
913 keyStore.store(null);
920 * java.security.KeyStore#store(OutputStream, char[])
926 keyStore.store(new ByteArrayOutputStream(), "pwd".toCharArray());
932 keyStore.store(null, "pwd".toCharArray());
H A DKeyStoreBuilderTest.java504 ks.store(fos, pass);
/libcore/ojluni/src/main/java/java/net/
H A DCookieManager.java71 * or not one cookie should be accepted and put into cookie store. User can use
134 * cookie store and accept policy. The effect is same as
143 * Create a new cookie manager with specified cookie store and cookie policy.
145 * @param store a <tt>CookieStore</tt> to be used by cookie manager.
153 public CookieManager(CookieStore store, argument
161 if (store == null) {
164 cookieJar = store;
187 * To retrieve current cookie store.
189 * @return the cookie store currently used by cookie manager.
329 // Only store cookie
[all...]
/libcore/ojluni/src/main/java/java/security/cert/
H A DPKIXParameters.java299 * @param store the <code>CertStore</code> to add. If <code>null</code>,
300 * the store is ignored (not added to list).
302 public void addCertStore(CertStore store) { argument
303 if (store != null) {
304 this.certStores.add(store);
/libcore/luni/src/test/java/libcore/java/util/logging/
H A DOldMemoryHandlerTest.java56 p.store(bos, "");
H A DOldFileHandlerTest.java90 p.store(bos, "");
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DBuilder.java445 for (CertStore store : certStores) {
448 store.getCertificates(selector);
H A DPKIX.java256 for (CertStore store : stores) {
260 store.getCertificates(sel);
H A DRevocationChecker.java278 for (CertStore store : stores) {
281 store.getCertificates(sel);
496 for (CertStore store : certStores) {
498 for (CRL crl : store.getCRLs(sel)) {
507 CertStoreHelper.isCausedByNetworkIssue(store.getType(),e)) {
H A DDistributionPointFetcher.java275 for (CertStore store : certStores) {
277 for (CRL crl : store.getCRLs(xcs)) {
286 savedCSE = new PKIX.CertStoreTypeException(store.getType(),cse);
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
H A DHttpsURLConnectionTest.java82 // the password to the store
100 private static File store; field in class:HttpsURLConnectionTest
104 store = File.createTempFile("key_store", "bks");
666 if (store != null) {
670 FileOutputStream out = new FileOutputStream(store);
680 fail("couldn't set up key store");
685 if (store != null) {
686 store.delete();
708 * Returns the file name of the key/trust store. The key store fil
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DAbstractCookiesTest.java529 // the RI crashes even though the cookie does get added to the store; sigh
560 assertFalse("Expected removeAll() to return false when the call doesn't mutate the store",
864 // If no domain is set, this cookie will languish in the store until
1269 private CookieManager store(String[][] cookies, method in class:AbstractCookiesTest
1319 CookieManager manager = store(
1342 manager = store(new String[][] { cookies[2] }, responseHeaders, null);
1350 manager = store(new String[][] { cookies[3] }, responseHeaders, null);
1359 manager = store(new String[][] { cookies[4] }, responseHeaders,
1367 manager = store(new String[][] { cookies[3] }, responseHeaders,
1374 manager = store(ne
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DProperties.java54 * instead. If the <code>store</code> or <code>save</code> method is called
63 * {@link #store(java.io.Writer, java.lang.String) store(Writer, String)}
64 * methods load and store properties from and to a character based stream
68 * {@link #store(java.io.OutputStream, java.lang.String) store(OutputStream, String)}
69 * methods work the same way as the load(Reader)/store(Writer, String) pair, except
79 * #storeToXML(OutputStream, String, String)} methods load and store properties
692 * Calls the <code>store(OutputStream out, String comments)</code> method
697 * properties list is via the <code>store(OutputStrea
763 public void store(Writer writer, String comments) method in class:Properties
810 public void store(OutputStream out, String comments) method in class:Properties
[all...]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
H A DTestUtils.java68 // Key store type used during testing
774 private static CertStore store; field in class:TestUtils
799 store = CertStore.getInstance("Collection", params);
834 buildParams.addCertStore(store);
/libcore/luni/src/test/java/tests/targets/security/
H A DKeyStoreTest.java154 keyStore.store(stream, "the keystore password".toCharArray());
/libcore/ojluni/src/main/java/sun/security/validator/
H A DPKIXValidator.java374 CertStore store = CertStore.getInstance("Collection",
376 params.addCertStore(store);
/libcore/ojluni/src/main/java/java/security/
H A DKeyStore.java148 * // store away the keystore
152 * ks.store(fos, password);
162 * to protect the secret key entry, and to store the keystore
249 * {@link #store(KeyStore.LoadStoreParameter) store}
1172 public final void store(OutputStream stream, char[] password) method in class:KeyStore
1186 * that specifies how to store the keystore,
1202 public final void store(LoadStoreParameter param) method in class:KeyStore

Completed in 704 milliseconds