Searched refs:key (Results 276 - 300 of 304) sorted by relevance

<<111213

/libcore/json/src/main/java/org/json/
H A DJSONStringer.java92 * An object whose most recent element is a key. The next element must
365 * Encodes the key (property name) to this stringer.
370 public JSONStringer key(String name) throws JSONException { method in class:JSONStringer
381 * adjusts the stack to expect the key's value.
411 } else if (context == Scope.DANGLING_KEY) { // value for key
/libcore/ojluni/src/main/java/sun/security/ssl/
H A DCipherSuite.java45 * An SSL/TLS CipherSuite. Constants for the standard key exchange, cipher,
106 // key exchange, bulk cipher, mac and prf algorithms. See those
327 * An SSL/TLS key exchange algorithm.
331 // key exchange algorithms
354 // name of the key exchange algorithm, e.g. DHE_DSS
387 * cipher and key length.
398 // descriptive name including key size, e.g. AES/128
410 // number of bytes of entropy in the key
413 // length of the actual cipher key in bytes.
464 CipherBox newCipher(ProtocolVersion version, SecretKey key, argument
[all...]
H A DHandshakeMessage.java503 * implies one of several different kinds of key exchange. Most current
507 * RSA public key in its cert, to be used with RSA (or RSA_export) key
509 * of key exchange do not require a ServerKeyExchange message.
514 * - "Ephemeral" keys. Here, a "temporary" key is allocated by the
517 * thing, to cut the key size down to 512 bits (export restrictions)
521 * key of the server. This case is subject to man-in-the-middle
526 * key there is used directly in exchanging the premaster secret.
542 * Using RSA for Key Exchange: exchange a session key that's not as big
543 * as the signing-only key
717 DH_ServerKeyExchange(DHCrypt obj, PrivateKey key, byte clntNonce[], byte svrNonce[], SecureRandom sr, SignatureAndHashAlgorithm signAlgorithm, ProtocolVersion protocolVersion) argument
1742 digestKey(MessageDigest md, SecretKey key) argument
[all...]
H A DServerHandshaker.java53 * common functionality (e.g. key generation) that is provided there.
72 * For exportable ciphersuites using non-exportable key sizes, we use
80 * For anonymous and ephemeral Diffie-Hellman key exchange, we use
85 // Helper for ECDH based key exchanges
186 * either the server's normal private RSA key, or the
227 ("Unrecognized key exchange: " + keyExchange);
621 // choose cipher suite and corresponding private key
721 * to use short RSA keys, even when the key/cert encrypts OK.
729 // no server key exchange for RSA or KRB5 ciphersuites
742 ("Error generating RSA server key exchang
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
H A DAbstractPreferencesTest.java215 assertEquals("default", pref.get("key", "default"));
216 assertNull(pref.get("key", null));
228 pref.get("key", null);
229 pref.get("key", "");
235 pref.get("key", "abc");
403 assertEquals(0, keys[i].indexOf("key"));
431 mock1.put("key", "1value");
439 assertEquals("1value", mock1.get("key", null));
444 String key = keys[i];
445 assertTrue("key"
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DCollections2Test.java550 for (Integer key : set) {
551 assertTrue(output.contains(key));
H A DWeakHashMapTest.java159 assertTrue("Should contain referenced key", whm.containsKey(keyArray[i]));
194 assertTrue("Invalid map entry returned--bad key", keys.contains(entry.getKey()));
195 assertTrue("Invalid map entry returned--bad key", values.contains(entry.getValue()));
238 map.put(null, "value"); // add null key
243 assertEquals("null key was removed", 1, map.size());
302 Object key = it.next();
303 assertTrue("Invalid map entry returned--bad key", keys.contains(key));
H A DTreeMapTest.java179 map.put("key", "value");
185 assertEquals("keySet() does not work", "key", keys.iterator().next());
187 map2.put("key", "value2");
223 assertTrue("Returned false for valid key", tm.containsKey("95"));
224 assertTrue("Returned true for invalid key", !tm.containsKey("XXXXX"));
261 assertEquals("Returned incorrect first key", "0", tm.firstKey());
274 // Test for the same key & same value
422 assertTrue("Returned incorrect last key", tm.lastKey().equals(
534 fail("end key less than start key shoul
[all...]
H A DResourceBundleTest.java247 protected Object handleGetObject(String key) { argument
404 bundle.getString("key"));
H A DLinkedHashMapTest.java143 assertNull("Get returned non-null for non existent key",
146 assertEquals("Get returned incorecct value for existing key", "HELLO", hm.get("T")
151 assertEquals("Failed with null key", "test", m.get(null));
152 assertNull("Failed with missing key matching null hash", m
163 assertEquals("Failed to install key/value pair",
242 private void entrySetRemoveHelper(String key, String value) { argument
244 m1.put(key, value);
265 assertTrue("Failed with null key", m.keySet().contains(null));
266 assertNull("Failed with null key", m.keySet().iterator().next());
341 assertNull("Failed to remove given key", h
[all...]
H A DPropertiesTest.java124 assertNull(props.getProperty("key"));
134 assertEquals("defaultValue", props.getProperty("key", "defaultValue"));
139 public synchronized Object get(Object key) { argument
140 return getProperty((String) key); // assume String
226 assertTrue("Failed to add empty key", prop.get("").equals(""));
327 assertEquals("Failed to add empty key", "", prop.get(""));
417 assertTrue("Failed to add empty key", prop.get("").equals(""));
421 assertTrue("Failed to add empty key", prop.get("").equals(""));
425 assertTrue("Failed to add empty key", prop.get("").equals(""));
900 parent.setProperty("parent.a.key", "paren
[all...]
H A DCollectionsTest.java1443 assertTrue("Trying to use a null key in map failed", synchMap.get(null)
1454 "Removing a key from the keySet of the synchronized map did not remove it from the synchronized map: ",
1457 "Removing a key from the keySet of the synchronized map did not remove it from the original map",
1577 "Removing a key from the keySet of the synchronized map did not remove it from the synchronized map",
1580 "Removing a key from the keySet of the synchronized map did not remove it from the original map",
1820 assertTrue("Trying to use a null key in map failed", unmodMap.get(null)
1976 Double key = new Double (3.14);
1979 Map single = Collections.singletonMap(key, value);
1981 assertTrue(single.containsKey(key));
1985 assertFalse(Collections.singletonMap(null, null).containsKey(key));
[all...]
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DX509CRLTest.java135 String key = line.substring(0, index);
137 dates.put(key, value);
192 fail("should not verify using incorrect key type");
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKeyStore4Test.java191 Key key = keyStore.getKey("keyalias", null);
192 assertNotNull(key);
H A DKeyStore2Test.java269 assertEquals("the public key of the certificate from getCertificate() "
303 // key entry
307 assertEquals("key entry - the alias returned for this certificate was wrong",
403 assertNull("the private key returned from getKey for a certificate entry is not null",
529 assertEquals("the public key of the certificate from getCertificate() "
883 // put the key into keystore
970 public void verify(PublicKey key) throws CertificateException, argument
975 public void verify(PublicKey key, String sigProvider) argument
/libcore/luni/src/test/java/tests/security/cert/
H A DX509CRLSelector2Test.java581 public void verify(PublicKey key) throws CRLException, argument
587 public void verify(PublicKey key, String sigProvider) argument
/libcore/ojluni/src/main/java/java/text/
H A DDateFormat.java1019 String key,
1017 getObject(DateFormatProvider dateFormatProvider, Locale locale, String key, Object... params) argument
H A DNumberFormat.java1131 String key,
1129 getObject(NumberFormatProvider numberFormatProvider, Locale locale, String key, Object... params) argument
H A DDateFormatSymbols.java976 String key,
974 getObject(DateFormatSymbolsProvider dateFormatSymbolsProvider, Locale locale, String key, Object... params) argument
/libcore/luni/src/test/java/libcore/java/util/prefs/
H A DOldAbstractPreferencesTest.java1113 protected String getSpi(String key) { argument
1123 protected void putSpi(String key, String value) { argument
1131 protected void removeSpi(String key) { argument
/libcore/ojluni/src/main/java/java/io/
H A DObjectOutputStream.java1063 WeakClassKey key = new WeakClassKey(cl, Caches.subclassAuditsQueue);
1064 Boolean result = Caches.subclassAudits.get(key);
1067 Caches.subclassAudits.putIfAbsent(key, result);
H A DObjectInputStream.java1245 WeakClassKey key = new WeakClassKey(cl, Caches.subclassAuditsQueue);
1246 Boolean result = Caches.subclassAudits.get(key);
1249 Caches.subclassAudits.putIfAbsent(key, result);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DMacTest.java569 * <code>init(Key key, AlgorithmParameterSpec params)</code>
570 * <code>init(Key key)</code>
830 SecretKey key = new SecretKeySpec(new byte[] {
868 mac.init(key);
/libcore/ojluni/src/main/java/java/util/logging/
H A DLogger.java98 * msg argument may be either a raw value or a localization key.
326 private static boolean getBooleanProperty(final String key) { argument
329 return System.getProperty(key);
652 * @param msg The string message (or a key in the message catalog)
670 * @param msg The string message (or a key in the message catalog)
691 * @param msg The string message (or a key in the message catalog)
716 * @param msg The string message (or a key in the message catalog)
743 * @param msg The string message (or a key in the message catalog)
766 * @param msg The string message (or a key in the message catalog)
793 * @param msg The string message (or a key i
[all...]
/libcore/luni/src/test/java/libcore/xml/
H A DDomTest.java1703 public void handle(short operation, String key, Object data, Node src, Node dst) { argument
1704 calls.add(notification(operation, key, data, src, dst));
1708 private String notification(short operation, String key, Object data, Node src, Node dst) { argument
1709 return "op:" + operation + " key:" + key + " data:" + data + " src:" + src + " dst:" + dst;

Completed in 1484 milliseconds

<<111213