Searched defs:keys (Results 1 - 25 of 27) sorted by relevance

12

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherPBEThread.java30 CipherPBEThread(String name, int[] keys, String[] modes, String[] paddings) { argument
31 super(name, keys, modes, paddings);
H A DCipherRSAThread.java26 CipherRSAThread(String name, int[] keys, String[] modes, String[] paddings) { argument
27 super(name, keys, modes, paddings);
H A DCipherSymmetricKeyThread.java28 CipherSymmetricKeyThread(String name, int[] keys, String[] modes, String[] paddings) { argument
29 super(name, keys, modes, paddings);
H A DCipherWrapThread.java26 CipherWrapThread(String name, int[] keys, String[] modes, String[] paddings) { argument
27 super(name, keys, modes, paddings);
H A DCipherThread.java40 CipherThread(String name, int[] keys, String[] modes, String[] paddings) { argument
42 keyLengthAr = keys;
/libcore/ojluni/src/main/java/java/nio/channels/
H A DSelector.java49 * keys:
53 * <li><p> The <i>key set</i> contains the keys representing the current
55 * {@link #keys() keys} method. </p></li>
57 * <li><p> The <i>selected-key set</i> is the set of keys such that each
63 * <li><p> The <i>cancelled-key</i> set is the set of keys that have been
74 * register} method. Cancelled keys are removed from the key set during
96 * <p> During each selection operation, keys may be added to and removed from a
131 * If all of the keys in the key set at the start of this step have empty
132 * interest sets then neither the selected-key set nor any of the keys'
259 public abstract Set<SelectionKey> keys(); method in class:Selector
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DDictionary.java30 * class, such as <code>Hashtable</code>, which maps keys to values.
37 * implementations of this class to decide if two keys are the same.
59 * Returns the number of entries (distinct keys) in this dictionary.
61 * @return the number of keys in this dictionary.
66 * Tests if this dictionary maps no keys to value. The general contract
70 * @return <code>true</code> if this dictionary maps no keys to values;
76 * Returns an enumeration of the keys in this dictionary. The general
77 * contract for the keys method is that an <tt>Enumeration</tt> object
78 * is returned that will generate all the keys for which this dictionary
81 * @return an enumeration of the keys i
85 abstract public Enumeration<K> keys(); method in class:Dictionary
[all...]
H A DHashtable.java35 * This class implements a hash table, which maps keys to values. Any
39 * objects used as keys must implement the <code>hashCode</code>
72 * the numbers as keys:
95 * The Enumerations returned by Hashtable's keys and elements methods are
231 * Returns the number of keys in this hashtable.
233 * @return the number of keys in this hashtable.
240 * Tests if this hashtable maps no keys to values.
242 * @return <code>true</code> if this hashtable maps no keys to values;
250 * Returns an enumeration of the keys in this hashtable.
252 * @return an enumeration of the keys i
258 public synchronized Enumeration<K> keys() { method in class:Hashtable
[all...]
/libcore/support/src/test/java/tests/security/
H A DDefaultKeys.java185 private static final HashMap<String, KeySpec> keys = new HashMap<String, KeySpec>(); field in class:DefaultKeys
187 keys.put("DH_public", new X509EncodedKeySpec(DH_public));
188 keys.put("DH_private", new PKCS8EncodedKeySpec(DH_private));
189 keys.put("DSA_public", new X509EncodedKeySpec(DSA_public));
190 keys.put("DSA_private", new PKCS8EncodedKeySpec(DSA_private));
191 keys.put("RSA_public", new X509EncodedKeySpec(RSA_public));
192 keys.put("RSA_private", new PKCS8EncodedKeySpec(RSA_private));
198 return factory.generatePrivate(keys.get(algorithmName + "_private"));
204 return factory.generatePublic(keys.get(algorithmName + "_public"));
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DSystemScope.java49 private Hashtable keys = new Hashtable(); field in class:SystemScope
96 return (Identity) keys.get(key);
113 if (key != null && keys.containsKey(key)) {
119 keys.put(key, identity);
145 contains = contains || keys.containsKey(key);
146 keys.remove(key);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
H A DMockAbstractSelector.java65 public Set<SelectionKey> keys() { method in class:MockAbstractSelector
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DSelectorImpl.java43 // The set of keys with data ready for an operation
46 // The set of keys registered with this Selector
47 protected HashSet<SelectionKey> keys; field in class:SelectorImpl
55 keys = new HashSet<SelectionKey>();
58 publicKeys = keys;
61 publicKeys = Collections.unmodifiableSet(keys);
66 public Set<SelectionKey> keys() { method in class:SelectorImpl
141 // Precondition: Synchronized on this, keys, and selectedKeys
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractMapTest.java292 Vector keys = new Vector(); field in class:AbstractMapTest.AMT
309 Object k = keys.elementAt(index);
341 keys.add(k);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DX509KeyManagerTest.java32 private PrivateKey[] keys; field in class:X509KeyManagerTest
631 keys = new PrivateKey[3];
632 keys[0] = kf.generatePrivate(new PKCS8EncodedKeySpec(keyBytes));
633 keys[1] = kf.generatePrivate(new PKCS8EncodedKeySpec(key2Bytes));
634 keys[2] = kf.generatePrivate(new PKCS8EncodedKeySpec(key3Bytes));
639 keyTest.setKeyEntry("clientKey_01", keys[0], PASSWORD, new X509Certificate[] {cert[0]});
640 keyTest.setKeyEntry("clientKey_02", keys[1], PASSWORD, new X509Certificate[] {cert[0], cert[1]});
641 keyTest.setKeyEntry("clientKey_03", keys[2], PASSWORD, new X509Certificate[] {cert[0], cert[2]});
646 keys = new PrivateKey[1];
647 keys[
[all...]
H A DHandshakeCompletedEventTest.java391 String keys; field in class:HandshakeCompletedEventTest.TestServer
397 public TestServer(boolean provideKeys, int clientAuth, String keys) throws Exception { argument
398 this.keys = keys;
404 KeyManager[] keyManagers = provideKeys ? getKeyManagers(keys) : null;
474 private String keys; field in class:HandshakeCompletedEventTest.TestClient
478 public TestClient(boolean provideKeys, String keys) { argument
479 this.keys = keys;
487 KeyManager[] keyManagers = provideKeys ? getKeyManagers(keys)
537 getKeyManagers(String keys) argument
[all...]
H A DSSLSocketTest.java485 String keys = useBKS ? SERVER_KEYS_BKS : SERVER_KEYS_JKS;
486 TestServer server = new TestServer(true, keys);
521 String keys; field in class:SSLSocketTest.TestServer
527 public TestServer(boolean provideKeys, String keys) { argument
528 this.keys = keys;
536 KeyManager[] keyManagers = provideKeys ? getKeyManagers(keys) : null;
589 private KeyManager[] getKeyManagers(String keys) throws Exception { argument
590 byte[] bytes = Base64.getDecoder().decode(keys.getBytes());
H A DSSLSessionTest.java485 String keys; field in class:SSLSessionTest.TestServer
493 public TestServer(boolean provideKeys, int clientAuth, String keys) throws Exception { argument
494 this.keys = keys;
500 store = provideKeys ? getKeyStore(keys) : null;
568 private String keys; field in class:SSLSessionTest.TestClient
574 public TestClient(boolean provideKeys, String keys) { argument
575 this.keys = keys;
583 store = provideKeys ? getKeyStore(keys)
629 getKeyStore(String keys) argument
[all...]
/libcore/ojluni/src/main/java/java/nio/channels/spi/
H A DAbstractSelectableChannel.java37 * blocking mode of this channel as well as its current set of selection keys.
58 // They are saved because if this channel is closed the keys must be
61 private SelectionKey[] keys = null; field in class:AbstractSelectableChannel
98 if ((keys != null) && (keyCount < keys.length)) {
100 for (i = 0; i < keys.length; i++)
101 if (keys[i] == null)
103 } else if (keys == null) {
104 keys = new SelectionKey[3];
107 int n = keys
[all...]
/libcore/json/src/main/java/org/json/
H A DJSONObject.java90 * <li>show up in the {@link #keys} iterator
124 * @param copyFrom a map whose keys are of type {@link String} and whose
126 * @throws NullPointerException if any of the map's keys are null.
134 * Deviate from the original by checking that keys are non-null and
655 * undefined. The order of the keys is undefined.
657 public Iterator<String> keys() { method in class:JSONObject
663 * is a view of the keys in this object. {@link Set#remove(Object)} will remove
667 * See {@link #keys()}.
/libcore/ojluni/src/main/java/java/util/prefs/
H A DPreferences.java834 * Returns all of the keys that have an associated value in this
843 * @return an array of the keys that have an associated value in this
851 public abstract String[] keys() throws BackingStoreException; method in class:Preferences
H A DAbstractPreferences.java326 * invokes {@link #keys()} to obtain an array of keys, and
337 String[] keys = keys();
338 for (int i=0; i<keys.length; i++)
339 remove(keys[i]);
669 * Implements the <tt>keys</tt> method as per the specification in
670 * {@link Preferences#keys()}.
675 * @return an array of the keys that have an associated value in this
683 public String[] keys() throw method in class:AbstractPreferences
[all...]
/libcore/ojluni/src/main/java/sun/net/www/
H A DMessageHeader.java45 private String keys[]; field in class:MessageHeader
63 joiner.add(keys[i]);
72 keys = null;
87 if (keys[i] == null)
91 if (k.equalsIgnoreCase(keys[i]))
100 if ((keys[i] == k) ||
101 (k != null && k.equalsIgnoreCase(keys[i])))
108 return keys[n];
131 if (keys[i] == null)
138 if (k.equalsIgnoreCase(keys[
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
H A DPreferencesTest.java86 assertEquals(0, p.keys().length);
124 assertEquals(0, p.keys().length);
321 public String[] keys() throws BackingStoreException { method in class:PreferencesTest.MockPreferences
/libcore/luni/src/test/java/libcore/java/util/prefs/
H A DOldPreferencesTest.java91 p.keys();
313 String[] keys = pref.keys();
314 assertEquals(4, keys.length);
315 for (String key : keys) {
1033 public String[] keys() throws BackingStoreException { method in class:OldPreferencesTest.MockPreferences
/libcore/ojluni/src/main/java/java/security/
H A DProvider.java52 * algorithm-specific keys).
245 * for any of the keys currently in the specified Map.
287 * Returns an unmodifiable Set view of the property keys contained in
641 public Enumeration<Object> keys() { method in class:Provider
643 return super.keys();
1766 // allow null for keys without attributes for compatibility
1789 * keys defined. Parses the attributes if not yet initialized.

Completed in 680 milliseconds

12