/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/ |
H A D | X509CertificateTest.java | 552 public void verify(PublicKey key) throws CertificateException, argument 558 public void verify(PublicKey key, String sigProvider) argument 567 private PublicKey key; field in class:X509CertificateTest.MyModifiablePublicKey 577 this.key = k; 584 return key.getAlgorithm(); 592 return key.getFormat(); 601 return key.getEncoded(); 607 return key.serialVersionUID; 641 PublicKey key = javaxCert.getPublicKey(); 642 assertNotNull(key); [all...] |
H A D | CertificateTest.java | 49 public void verify(PublicKey key) throws CertificateException, argument 54 public void verify(PublicKey key, String sigProvider) argument 75 assertNull("Public key should be null", tbt_cert.getPublicKey());
|
/libcore/luni/src/test/java/tests/java/sql/ |
H A D | SelectFunctionalityTest.java | 249 int key = result.getInt("finteger"); 251 assertTrue("wrong value of finteger field", value.containsKey(key)); 252 assertEquals("wrong value of ftext field", value.get(key), val); 253 value.remove(key); 286 int key = result.getInt("onum"); 288 assertTrue("wrong value of onum field", value.containsKey(key)); 289 assertEquals("wrong value of cnum field", value.get(key), 291 value.remove(key); 315 int key = result.getInt("cnum"); 317 assertTrue("wrong value of cnum field", value.containsKey(key)); [all...] |
/libcore/ojluni/src/main/java/javax/crypto/ |
H A D | Cipher.java | 641 * Constant used to initialize cipher to key-wrapping mode. 646 * Constant used to initialize cipher to key-unwrapping mode. 651 * Constant used to indicate the to-be-unwrapped key is a "public key". 656 * Constant used to indicate the to-be-unwrapped key is a "private key". 661 * Constant used to indicate the to-be-unwrapped key is a "secret key". 948 private void chooseProvider(InitType initType, int opmode, Key key, argument 954 final InitParams initParams = new InitParams(initType, opmode, key, rando 1142 init(int opmode, Key key) argument 1192 init(int opmode, Key key, SecureRandom random) argument 1264 init(int opmode, Key key, AlgorithmParameterSpec params) argument 1322 init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument 1390 init(int opmode, Key key, AlgorithmParameters params) argument 1448 init(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument 2373 wrap(Key key) argument 2715 final Key key; field in class:Cipher.InitParams 2720 InitParams(InitType initType, int opmode, Key key, SecureRandom random, AlgorithmParameterSpec spec, AlgorithmParameters params) argument [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | Collections.java | 269 * @param key the key to be searched for. 270 * @return the index of the search key, if it is contained in the list; 273 * key would be inserted into the list: the index of the first 274 * element greater than the key, or <tt>list.size()</tt> if all 275 * elements in the list are less than the specified key. Note 277 * and only if the key is found. 280 * integers), or the search key is not mutually comparable 284 int binarySearch(List<? extends Comparable<? super T>> list, T key) { argument 286 return Collections.indexedBinarySearch(list, key); 292 indexedBinarySearch(List<? extends Comparable<? super T>> list, T key) argument 312 iteratorBinarySearch(List<? extends Comparable<? super T>> list, T key) argument 388 binarySearch(List<? extends T> list, T key, Comparator<? super T> c) argument 398 indexedBinarySearch(List<? extends T> l, T key, Comparator<? super T> c) argument 417 iteratorBinarySearch(List<? extends T> l, T key, Comparator<? super T> c) argument 1436 containsKey(Object key) argument 1438 get(Object key) argument 1440 put(K key, V value) argument 1443 remove(Object key) argument 1498 putIfAbsent(K key, V value) argument 1503 remove(Object key, Object value) argument 1508 replace(K key, V oldValue, V newValue) argument 1513 replace(K key, V value) argument 1518 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument 1523 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument 1529 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument 1535 merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) argument 2307 containsKey(Object key) argument 2313 get(Object key) argument 2317 put(K key, V value) argument 2320 remove(Object key) argument 2384 putIfAbsent(K key, V value) argument 2388 remove(Object key, Object value) argument 2392 replace(K key, V oldValue, V newValue) argument 2396 replace(K key, V value) argument 2400 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument 2405 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument 2410 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument 2415 merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) argument 3021 typeCheck(Object key, Object value) argument 3039 badKeyMsg(Object key) argument 3057 containsKey(Object key) argument 3059 get(Object key) argument 3060 remove(Object key) argument 3068 put(K key, V value) argument 3114 putIfAbsent(K key, V value) argument 3120 remove(Object key, Object value) argument 3125 replace(K key, V oldValue, V newValue) argument 3131 replace(K key, V value) argument 3137 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument 3148 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument 3154 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument 3160 merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) argument 3772 containsKey(Object key) argument 3774 get(Object key) argument 3803 putIfAbsent(K key, V value) argument 3808 remove(Object key, Object value) argument 3813 replace(K key, V oldValue, V newValue) argument 3818 replace(K key, V value) argument 3823 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument 3829 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument 3835 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument 3841 merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) argument 4048 singletonMap(K key, V value) argument 4063 SingletonMap(K key, V value) argument 4072 containsKey(Object key) argument 4076 get(Object key) argument 4103 getOrDefault(Object key, V defaultValue) argument 4118 putIfAbsent(K key, V value) argument 4123 remove(Object key, Object value) argument 4128 replace(K key, V oldValue, V newValue) argument 4133 replace(K key, V value) argument 4138 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument 4144 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument 4150 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument 4156 merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) argument [all...] |
H A D | WeakHashMap.java | 39 * its key is no longer in ordinary use. More precisely, the presence of a 40 * mapping for a given key will not prevent the key from being discarded by the 42 * When a key has been discarded its entry is effectively removed from the map, 46 * <p> Both null values and the null key are supported. This class has 56 * <p> This class is intended primarily for use with key objects whose 58 * <tt>==</tt> operator. Once such a key is discarded it can never be 59 * recreated, so it is impossible to do a lookup of that key in a 61 * has been removed. This class will work perfectly well with key objects 63 * as <tt>String</tt> instances. With such recreatable key object 270 maskNull(Object key) argument 277 unmaskNull(Object key) argument 376 get(Object key) argument 398 containsKey(Object key) argument 406 getEntry(Object key) argument 429 put(K key, V value) argument 571 remove(Object key) argument 692 Entry(Object key, V value, ReferenceQueue<Object> queue, int hash, Entry<K,V> next) argument [all...] |
H A D | Arrays.java | 1801 * @param key the value to be searched for 1802 * @return index of the search key, if it is contained in the array; 1805 * key would be inserted into the array: the index of the first 1806 * element greater than the key, or <tt>a.length</tt> if all 1807 * elements in the array are less than the specified key. Note 1809 * and only if the key is found. 1811 public static int binarySearch(long[] a, long key) { argument 1812 return binarySearch0(a, 0, a.length, key); 1830 * @param key the value to be searched for 1831 * @return index of the search key, i 1847 binarySearch(long[] a, int fromIndex, int toIndex, long key) argument 1854 binarySearch0(long[] a, int fromIndex, int toIndex, long key) argument 1892 binarySearch(int[] a, int key) argument 1928 binarySearch(int[] a, int fromIndex, int toIndex, int key) argument 1935 binarySearch0(int[] a, int fromIndex, int toIndex, int key) argument 1973 binarySearch(short[] a, short key) argument 2009 binarySearch(short[] a, int fromIndex, int toIndex, short key) argument 2016 binarySearch0(short[] a, int fromIndex, int toIndex, short key) argument 2054 binarySearch(char[] a, char key) argument 2090 binarySearch(char[] a, int fromIndex, int toIndex, char key) argument 2097 binarySearch0(char[] a, int fromIndex, int toIndex, char key) argument 2135 binarySearch(byte[] a, byte key) argument 2171 binarySearch(byte[] a, int fromIndex, int toIndex, byte key) argument 2178 binarySearch0(byte[] a, int fromIndex, int toIndex, byte key) argument 2217 binarySearch(double[] a, double key) argument 2254 binarySearch(double[] a, int fromIndex, int toIndex, double key) argument 2261 binarySearch0(double[] a, int fromIndex, int toIndex, double key) argument 2308 binarySearch(float[] a, float key) argument 2345 binarySearch(float[] a, int fromIndex, int toIndex, float key) argument 2352 binarySearch0(float[] a, int fromIndex, int toIndex, float key) argument 2407 binarySearch(Object[] a, Object key) argument 2451 binarySearch(Object[] a, int fromIndex, int toIndex, Object key) argument 2458 binarySearch0(Object[] a, int fromIndex, int toIndex, Object key) argument 2507 binarySearch(T[] a, T key, Comparator<? super T> c) argument 2552 binarySearch(T[] a, int fromIndex, int toIndex, T key, Comparator<? super T> c) argument 2559 binarySearch0(T[] a, int fromIndex, int toIndex, T key, Comparator<? super T> c) argument [all...] |
/libcore/ojluni/src/main/java/java/util/prefs/ |
H A D | FileSystemPreferences.java | 368 String key, value; field in class:FileSystemPreferences.Put 370 Put(String key, String value) { argument 371 this.key = key; 376 prefsCache.put(key, value); 384 String key; field in class:FileSystemPreferences.Remove 386 Remove(String key) { argument 387 this.key = key; 391 prefsCache.remove(key); 525 putSpi(String key, String value) argument 531 getSpi(String key) argument 536 removeSpi(String key) argument [all...] |
/libcore/ojluni/src/main/java/java/security/ |
H A D | KeyStoreSpi.java | 57 * Returns the key associated with the given alias, using the given 58 * password to recover it. The key must have been associated with 64 * @param password the password for recovering the key 66 * @return the requested key, or null if the given alias does not exist 67 * or does not identify a key-related entry. 70 * key cannot be found 71 * @exception UnrecoverableKeyException if the key cannot be recovered 126 * Assigns the given key to the given alias, protecting it with the given 129 * <p>If the given key is of type <code>java.security.PrivateKey</code>, 131 * corresponding public key 147 engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument 173 engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) argument [all...] |
/libcore/ojluni/src/main/java/sun/util/ |
H A D | LocaleServiceProviderPool.java | 317 * @param key the key string if bundle is supplied, otherwise null. 324 String key, 326 return getLocalizedObjectImpl(getter, locale, false, null, bundle, key, params); 336 * @param bundleKey JRE specific bundle key. e.g., "USD" is for currency 340 * @param key the key string if bundle is supplied, otherwise null. 348 String key, 350 return getLocalizedObjectImpl(getter, locale, false, bundleKey, bundle, key, params); 358 String key, 321 getLocalizedObject(LocalizedObjectGetter<P, S> getter, Locale locale, OpenListResourceBundle bundle, String key, Object... params) argument 344 getLocalizedObject(LocalizedObjectGetter<P, S> getter, Locale locale, String bundleKey, OpenListResourceBundle bundle, String key, Object... params) argument 353 getLocalizedObjectImpl(LocalizedObjectGetter<P, S> getter, Locale locale, boolean isObjectProvider, String bundleKey, OpenListResourceBundle bundle, String key, Object... params) argument 542 getObject(P lsp, Locale locale, String key, Object... params) argument [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
H A D | DateIntervalFormat.java | 87 String key = skeleton + "\t" + locale + "\t" + icuTimeZone; 88 android.icu.text.DateIntervalFormat formatter = CACHED_FORMATTERS.get(key); 94 CACHED_FORMATTERS.put(key, formatter);
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | OldAbstractMapTest.java | 104 @Override public String put(String key, String value) { argument 105 String result = remove(key); 106 entries.add(new AbstractMap.SimpleEntry<String, String>(key, value));
|
H A D | OldMapEntryTest.java | 56 public Object put(Object key, Object val) { argument 63 public Object fakePut(Object key, Object val) { argument 64 return super.put(key, val);
|
/libcore/ojluni/src/main/java/java/awt/font/ |
H A D | NumericShaper.java | 371 private int key; field in class:NumericShaper 559 // if we're not in a known range, then return EUROPEAN as the range key 907 int key = 0; 908 while (key < NUM_KEYS && ((mask & (1<<key)) == 0)) { 909 ++key; 911 if (key == NUM_KEYS || ((mask & ~(1<<key)) != 0)) { 914 return key; 926 int key 1035 NumericShaper(int key, int mask) argument [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
H A D | ProcessEnvironment.java | 231 public boolean containsKey(Object key) { argument 232 return m.containsKey(Variable.valueOfQueryOnly(key)); 237 public String get(Object key) { argument 238 return toString(m.get(Variable.valueOfQueryOnly(key))); 240 public String put(String key, String value) { argument 241 return toString(m.put(Variable.valueOf(key), 244 public String remove(Object key) { argument 245 return toString(m.remove(Variable.valueOfQueryOnly(key))); 280 byte[] key = entry.getKey ().getBytes(); 282 System.arraycopy(key, [all...] |
/libcore/luni/src/test/java/libcore/java/security/ |
H A D | OldDHTest.java | 46 KeyPair key = gen.generateKeyPair();
|
/libcore/ojluni/src/main/java/sun/security/ssl/ |
H A D | DHCrypt.java | 41 * This class implements the Diffie-Hellman key exchange algorithm. 42 * D-H means combining your private key with your partners public key to 43 * generate a number. The peer does the same with its private key and our 44 * public key. Through the magic of Diffie-Hellman we both come up with the 52 * it is generally a good idea to create a new private key for each session. 53 * Generating a private key involves one modular exponentiation assuming 63 * . receive peers ephemeral public key 73 * time the key exchange takes place and an active MITM attack is used. 74 * This is in contrast to straightforward encrypting RSA key exchange 141 getDHPublicKeySpec(PublicKey key) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | ManifestEntryVerifier.java | 126 String key = se.getKey().toString(); 128 if (key.toUpperCase(Locale.ENGLISH).endsWith("-DIGEST")) { 130 String algorithm = key.substring(0, key.length()-7);
|
/libcore/ojluni/src/main/java/sun/util/logging/ |
H A D | LoggingProxy.java | 67 public String getProperty(String key); argument
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | IdentityScopeStub.java | 86 public Identity getIdentity(PublicKey key) { argument
|
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | Helpers.java | 71 /** Optimized form of: key + "=" + val */ 72 static String mapEntryToString(Object key, Object val) { argument 76 new char[(klen = (k = objectToString(key)).length()) +
|
/libcore/luni/src/main/java/org/w3c/dom/ |
H A D | Node.java | 873 * Associate an object to a key on this node. The object can later be 875 * same key. 876 * @param key The key to associate the object to. 877 * @param data The object to associate to the given key, or 878 * <code>null</code> to remove any existing association to that key. 879 * @param handler The handler to associate to that key, or 882 * the given key on this node, or <code>null</code> if there was none. 885 public Object setUserData(String key, argument 890 * Retrieves the object associated to a key o 898 getUserData(String key) argument [all...] |
/libcore/ojluni/src/main/java/java/security/cert/ |
H A D | Certificate.java | 40 * An identity certificate is a binding of a principal to a public key which 48 * some types of information (like a public key). 152 * private key that corresponds to the specified public key. 154 * @param key the PublicKey used to carry out the verification. 158 * @exception InvalidKeyException on incorrect key. 163 public abstract void verify(PublicKey key) argument 170 * private key that corresponds to the specified public key. 174 * @param key th 184 verify(PublicKey key, String sigProvider) argument [all...] |
H A D | X509CRL.java | 187 * private key that corresponds to the given public key. 189 * @param key the PublicKey used to carry out the verification. 193 * @exception InvalidKeyException on incorrect key. 198 public abstract void verify(PublicKey key) argument 205 * private key that corresponds to the given public key. 209 * @param key the PublicKey used to carry out the verification. 214 * @exception InvalidKeyException on incorrect key. 219 public abstract void verify(PublicKey key, Strin argument [all...] |
/libcore/ojluni/src/main/java/sun/security/ec/ |
H A D | ECPrivateKeyImpl.java | 57 * not in the private key structure. 70 * Construct a key from its encoding. Called by the ECKeyFactory and 78 * Construct a key from its components. Used by the 95 key = val.toByteArray(); 118 * Parse the key. Called by PKCS8Key. 122 DerInputStream in = new DerInputStream(key); 151 throw new InvalidKeyException("Invalid EC private key", e); 153 throw new InvalidKeyException("Invalid EC private key", e); 157 // return a string representation of this key for debugging 159 return "Sun EC private key, " [all...] |