/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
H A D | CipherPBEThread.java | 30 CipherPBEThread(String name, int[] keys, String[] modes, String[] paddings) { argument 31 super(name, keys, modes, paddings);
|
H A D | CipherRSAThread.java | 26 CipherRSAThread(String name, int[] keys, String[] modes, String[] paddings) { argument 27 super(name, keys, modes, paddings);
|
H A D | CipherSymmetricKeyThread.java | 28 CipherSymmetricKeyThread(String name, int[] keys, String[] modes, String[] paddings) { argument 29 super(name, keys, modes, paddings);
|
H A D | CipherWrapThread.java | 26 CipherWrapThread(String name, int[] keys, String[] modes, String[] paddings) { argument 27 super(name, keys, modes, paddings);
|
H A D | CipherThread.java | 40 CipherThread(String name, int[] keys, String[] modes, String[] paddings) { argument 42 keyLengthAr = keys;
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | Selector.java | 49 * 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 D | Dictionary.java | 30 * 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 D | Hashtable.java | 35 * 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 D | DefaultKeys.java | 185 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 D | SystemScope.java | 49 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 D | MockAbstractSelector.java | 65 public Set<SelectionKey> keys() { method in class:MockAbstractSelector
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | SelectorImpl.java | 43 // 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 D | AbstractMapTest.java | 292 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 D | X509KeyManagerTest.java | 32 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 D | HandshakeCompletedEventTest.java | 391 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 D | SSLSocketTest.java | 485 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 D | SSLSessionTest.java | 501 String keys; field in class:SSLSessionTest.TestServer 509 public TestServer(boolean provideKeys, int clientAuth, String keys) throws Exception { argument 510 this.keys = keys; 516 store = provideKeys ? getKeyStore(keys) : null; 584 private String keys; field in class:SSLSessionTest.TestClient 590 public TestClient(boolean provideKeys, String keys) { argument 591 this.keys = keys; 599 store = provideKeys ? getKeyStore(keys) 645 getKeyStore(String keys) argument [all...] |
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
H A D | AbstractSelectableChannel.java | 37 * 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 D | JSONObject.java | 90 * <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 D | Preferences.java | 834 * 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 D | AbstractPreferences.java | 326 * 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 D | MessageHeader.java | 51 private String keys[]; field in class:MessageHeader 67 keys = null; 82 if (keys[i] == null) 86 if (k.equalsIgnoreCase(keys[i])) 95 if ((keys[i] == k) || 96 (k != null && k.equalsIgnoreCase(keys[i]))) 103 return keys[n]; 126 if (keys[i] == null) 133 if (k.equalsIgnoreCase(keys[i])) 149 if (k.equalsIgnoreCase(keys[ [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
H A D | PreferencesTest.java | 86 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 D | OldPreferencesTest.java | 91 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 D | Provider.java | 52 * algorithm-specific keys). 241 * for any of the keys currently in the specified Map. 283 * Returns an unmodifiable Set view of the property keys contained in 637 public Enumeration<Object> keys() { method in class:Provider 639 return super.keys(); 1756 // allow null for keys without attributes for compatibility 1779 * keys defined. Parses the attributes if not yet initialized.
|