Searched refs:key (Results 176 - 200 of 304) sorted by relevance

1234567891011>>

/libcore/ojluni/src/main/native/
H A DSystem.c45 #define PUTPROP(props, key, val) \
47 jstring jkey = (*env)->NewStringUTF(env, key); \
56 /* "key" is a char type string with only ASCII character in it.
59 #define PUTPROP_ForPlatformNString(props, key, val) \
61 jstring jkey = (*env)->NewStringUTF(env, key); \
69 #define REMOVEPROP(props, key) \
71 jstring jkey = JNU_NewStringPlatform(env, key); \
77 #define GETPROP(props, key, jret) \
79 jstring jkey = JNU_NewStringPlatform(env, key); \
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
H A DMyCertificate.java71 public void verify(PublicKey key) throws CertificateException, argument
79 public void verify(PublicKey key, String sigProvider) argument
97 * Returns public key (stub) from <code>MyCertificate</code> object
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DSelectorTest.java46 SelectionKey key = sc.register(selector, SelectionKey.OP_CONNECT);
48 assertEquals(SelectionKey.OP_CONNECT, key.readyOps());
64 SelectionKey key = sc.register(selector, SelectionKey.OP_CONNECT);
66 assertEquals(SelectionKey.OP_CONNECT, key.readyOps());
149 SelectionKey key = sc.register(selector,
152 assertEquals(SelectionKey.OP_READ | SelectionKey.OP_WRITE, key.readyOps());
197 // associated with the selection key from the epoll fd's interest set.
/libcore/luni/src/test/java/tests/security/cert/
H A DCertificateTest.java242 private PublicKey key; field in class:CertificateTest.MyModifiablePublicKey
252 this.key = k;
259 return key.getAlgorithm();
267 return key.getFormat();
276 return key.getEncoded();
282 return key.serialVersionUID;
H A DX509CRL2Test.java186 public void verify(PublicKey key) { argument
190 public void verify(PublicKey key, String sigProvider) { argument
/libcore/ojluni/src/main/java/java/security/
H A DKeyFactory.java40 * cryptographic keys of type <code>Key</code>) into <I>key specifications</I>
41 * (transparent representations of the underlying key material), and vice
45 * opaque key object from a given key specification (key material), or to
46 * retrieve the underlying key material of a key object in a suitable format.
48 * <P> Multiple compatible key specifications may exist for the same key.
49 * For example, a DSA public key ma
433 getKeySpec(Key key, Class<T> keySpec) argument
471 translateKey(Key key) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/www/protocol/https/
H A DHttpsURLConnectionImpl.java311 * Sets request property. If a property with the key already
315 public void setRequestProperty(String key, String value) { argument
316 delegate.setRequestProperty(key, value);
321 * key-value pair. This method will not overwrite
322 * existing values associated with the same key.
324 * @param key the keyword by which the request is known
330 public void addRequestProperty(String key, String value) { argument
331 delegate.addRequestProperty(key, value);
341 public String getRequestProperty(String key) { argument
342 return delegate.getRequestProperty(key);
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DConcurrentHashMap.java63 * onset. (More formally, an update operation for a given key bears a
65 * that key reporting the updated value.) For aggregate operations
113 * {@code freqs.computeIfAbsent(key, k -> new LongAdder()).increment();}
120 * does <em>not</em> allow {@code null} to be used as a key or value.
128 * functions with keys, values, entries, and (key, value) pairs as
155 * (key, value) function arguments since there is no corresponding
180 * from {@code get(key)} and related access methods bears a
208 * key-value associations. They may be useful for example when
209 * finding the key for the greatest value. Note that "plain" Entry
250 * key
598 final K key; field in class:ConcurrentHashMap.Node
602 Node(int hash, K key, V val, Node<K,V> next) argument
913 get(Object key) argument
942 containsKey(Object key) argument
984 put(K key, V value) argument
989 putVal(K key, V value, boolean onlyIfAbsent) argument
1077 remove(Object key) argument
1086 replaceNode(Object key, V value, Object cv) argument
1521 putIfAbsent(K key, V value) argument
1530 remove(Object key, Object value) argument
1541 replace(K key, V oldValue, V newValue) argument
1554 replace(K key, V value) argument
1573 getOrDefault(Object key, V defaultValue) argument
1669 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument
1774 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
1866 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
1996 merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) argument
2696 TreeNode(int hash, K key, V val, Node<K,V> next, TreeNode<K,V> parent) argument
3498 final K key; // non-null field in class:ConcurrentHashMap.MapEntry
3501 MapEntry(K key, V val, ConcurrentHashMap<K,V> map) argument
[all...]
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DSSLSessionTest.java289 String key = "KEY";
291 assertNull(s.invalid.getValue(key));
293 s.invalid.putValue(key, value);
294 assertSame(value, s.invalid.getValue(key));
296 assertEquals(key, s.invalid.getValueNames()[0]);
302 String key = "KEY";
304 s.invalid.putValue(key, value);
306 assertEquals(key, s.invalid.getValueNames()[0]);
307 s.invalid.removeValue(key);
308 assertNull(s.invalid.getValue(key));
[all...]
/libcore/luni/src/test/java/libcore/java/util/prefs/
H A DOldPreferencesTest.java41 StringBuilder key = new StringBuilder(Preferences.MAX_KEY_LENGTH);
43 key.append('a');
45 longKey = key.toString();
166 assertEquals("default", pref.get("key", "default"));
167 assertNull(pref.get("key", null));
178 pref.get("key", null);
179 pref.get("key", "");
185 pref.get("key", "abc");
315 for (String key : keys) {
316 assertEquals(0, key
993 get(String key, String deflt) argument
998 getBoolean(String key, boolean deflt) argument
1003 getByteArray(String key, byte[] deflt) argument
1008 getDouble(String key, double deflt) argument
1013 getFloat(String key, float deflt) argument
1018 getInt(String key, int deflt) argument
1023 getLong(String key, long deflt) argument
1058 put(String key, String value) argument
1062 putBoolean(String key, boolean value) argument
1066 putByteArray(String key, byte[] value) argument
1070 putDouble(String key, double value) argument
1074 putFloat(String key, float value) argument
1078 putInt(String key, int value) argument
1082 putLong(String key, long value) argument
1086 remove(String key) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/util/
H A DSignatureFileVerifier.java289 String key = se.getKey().toString();
291 if (key.toUpperCase(Locale.ENGLISH).endsWith("-DIGEST-MANIFEST")) {
293 String algorithm = key.substring(0, key.length()-16);
295 manifestDigests.add(key);
334 String key = se.getKey().toString();
336 if (key.toUpperCase(Locale.ENGLISH).endsWith(ATTR_DIGEST)) {
338 key.substring(0, key.length() - ATTR_DIGEST.length());
410 String key
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DObjectStreamClass.java311 WeakClassKey key = new WeakClassKey(cl, Caches.localDescsQueue);
312 Reference<?> ref = Caches.localDescs.get(key);
323 Caches.localDescs.remove(key, ref);
325 ref = Caches.localDescs.putIfAbsent(key, newRef);
359 Caches.localDescs.put(key, new SoftReference<Object>(entry));
1897 long key = (rf != null) ?
1899 readKeys[i] = key;
1900 writeKeys[i] = usedKeys.add(key) ?
1901 key : Unsafe.INVALID_FIELD_OFFSET;
1937 long key
[all...]
/libcore/ojluni/src/main/java/javax/crypto/
H A DCipherSpi.java307 * Initializes this cipher with a key and a source
311 * encryption, decryption, key wrapping or key unwrapping, depending on
315 * derived from the given <code>key</code>, the underlying cipher
318 * initialized for encryption or key wrapping, and raise an
320 * initialized for decryption or key unwrapping.
343 * @param key the encryption key
346 * @exception InvalidKeyException if the given key is inappropriate for
349 * determined from the given key
351 engineInit(int opmode, Key key, SecureRandom random) argument
403 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
456 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
867 engineWrap(Key key) argument
923 engineGetKeySize(Key key) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/x509/
H A DCRLExtensions.java264 String key = null;
267 key = ((CertAttrSet)objs[i]).getName();
269 if (key == null)
270 key = otherExt.getExtensionId().toString();
271 thisExt = map.get(key);
H A DCertificateExtensions.java314 String key = null;
317 key = ((CertAttrSet)objs[i]).getName();
319 if (key == null)
320 key = otherExt.getExtensionId().toString();
321 thisExt = map.get(key);
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMyKeyStore.java92 public void engineSetKeyEntry(String alias, Key key, char[] password, argument
97 Keys.put(alias, key);
104 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) argument
106 if (key == null) {
107 throw new KeyStoreException("Not Supported for null key");
116 alias, alias, key);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DIdentityHashMapTest.java146 map.put("key", "value");
153 "key", keys.iterator().next());
155 map2.put("key", "value2");
175 assertTrue("Returned false for valid key", hm
177 assertTrue("Returned true for copy of valid key", !hm
179 assertTrue("Returned true for invalid key", !hm.containsKey("KKDKDKD"));
183 assertTrue("Failed with null key", m.containsKey(null));
184 assertTrue("Failed with missing key matching null hash", !m
222 assertNull("Get returned non-null for non existent key",
225 assertEquals("Get returned incorecct value for existing key", "HELL
[all...]
H A DHashMapTest.java206 map.put("key", "value");
213 "key", keys.iterator().next());
215 map2.put("key", "value2");
246 assertTrue("Returned false for valid key", hm.containsKey(new Integer(
248 assertTrue("Returned true for invalid key", !hm.containsKey("KKDKDKD"));
252 assertTrue("Failed with null key", m.containsKey(null));
253 assertTrue("Failed with missing key matching null hash", !m
318 assertNull("Get returned non-null for non existent key",
321 assertEquals("Get returned incorrect value for existing key", "HELLO", hm.get("T")
326 assertEquals("Failed with null key", "tes
630 private int key = 0; field in class:HashMapTest.ReusableKey
632 setKey(int key) argument
949 put(K key, V value) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DProviderTest.java174 String key = (String)e.getKey();
176 if (key.equals("MessageDigest.SHA-1") && val.equals("SomeClassName")) {
179 if (key.equals("Alg.Alias.MessageDigest.SHA1") && val.equals("SHA-1")) {
182 if (key.equals("MessageDigest.abc") && val.equals("SomeClassName")) {
185 if (key.equals("Provider.id className") && val.equals(p.getClass().getName())) {
188 if (key.equals("Provider.id name") && val.equals("MyProvider")) {
191 if (key.equals("MessageDigest.SHA-256") && val.equals("aaa.bbb.ccc.ddd")) {
194 if (key.equals("Provider.id version") && val.equals("1.0")) {
197 if (key.equals("Provider.id info") && val.equals("Provider for testing")) {
212 for(String key
[all...]
/libcore/ojluni/src/main/java/java/util/logging/
H A DLoggingProxyImpl.java114 public String getProperty(String key) { argument
115 return LogManager.getLogManager().getProperty(key);
/libcore/ojluni/src/main/java/sun/misc/
H A DVM.java227 * Returns the system property of the specified key saved at
238 public static String getSavedProperty(String key) { argument
243 return savedProps.getProperty(key);
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DNet.java370 OptionKey key = SocketOptionRegistry.findOption(name, family);
371 if (key == null)
383 setIntOption0(fd, mayNeedConversion, key.level(), key.name(), arg);
397 OptionKey key = SocketOptionRegistry.findOption(name, family);
398 if (key == null)
402 int value = getIntOption0(fd, mayNeedConversion, key.level(), key.name());
H A DSocketOptionRegistry.java80 RegistryKey key = new RegistryKey(name, family);
81 return LazyInitialization.options.get(key);
/libcore/ojluni/src/main/java/sun/security/ssl/
H A DMAC.java96 MAC(MacAlg macAlg, ProtocolVersion protocolVersion, SecretKey key) argument
117 mac.init(key);
H A DRSASignature.java36 * (RSA signed server key exchange for RSA_EXPORT and DHE_RSA) and RSA client
103 private static void checkNull(Key key) throws InvalidKeyException { argument
104 if (key == null) {

Completed in 594 milliseconds

1234567891011>>