Searched refs:key (Results 126 - 150 of 312) sorted by relevance

1234567891011>>

/dalvik/libcore/luni/src/test/java/tests/api/java/util/
H A DAbstractMapTest.java69 public Object put(Object key, Object value) { argument
120 Object key = new Object();
124 map1.put("key", value);
125 assertSame("HashMap(0)", map1.remove("key"), value);
128 map4.put(key, value);
129 assertSame("IdentityHashMap", map4.remove(key), value);
132 map5.put(key, value);
133 assertSame("LinkedHashMap", map5.remove(key), value);
141 map6.put(key, value);
142 assertSame("TreeMap", map6.remove(key), valu
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/
H A DJCESecretKeyFactory.java50 SecretKey key,
58 if (key == null)
60 throw new InvalidKeySpecException("key parameter is null");
65 return new SecretKeySpec(key.getEncoded(), algName);
75 p[0] = key.getEncoded();
86 SecretKey key)
89 if (key == null)
91 throw new InvalidKeyException("key parameter is null");
94 if (!key.getAlgorithm().equalsIgnoreCase(algName))
99 return new SecretKeySpec(key
49 engineGetKeySpec( SecretKey key, Class keySpec) argument
85 engineTranslateKey( SecretKey key) argument
263 engineGetKeySpec( SecretKey key, Class keySpec) argument
[all...]
H A DWrapCipherSpi.java91 Key key)
93 return key.getEncoded().length;
123 Key key,
130 if (key instanceof JCEPBEKey)
132 JCEPBEKey k = (JCEPBEKey)key;
149 param = new KeyParameter(key.getEncoded());
177 Key key,
206 engineInit(opmode, key, paramSpec, random);
211 Key key,
217 engineInit(opmode, key, (AlgorithmParameterSpe
90 engineGetKeySize( Key key) argument
121 engineInit( int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
175 engineInit( int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
209 engineInit( int opmode, Key key, SecureRandom random) argument
267 engineWrap( Key key) argument
[all...]
H A DBrokenJCEBlockCipher.java105 Key key)
107 return key.getEncoded().length;
224 Key key,
234 if (key instanceof JCEPBEKey)
236 param = BrokenPBE.Util.makePBEParameters((JCEPBEKey)key, params, pbeType, pbeHash,
246 param = new KeyParameter(key.getEncoded());
252 param = new ParametersWithIV(new KeyParameter(key.getEncoded()), ((IvParameterSpec)params).getIV());
257 param = new KeyParameter(key.getEncoded());
264 param = new RC2Parameters(key.getEncoded(), ((RC2ParameterSpec)params).getEffectiveKeyBits());
276 param = new RC5Parameters(key
104 engineGetKeySize( Key key) argument
222 engineInit( int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
328 engineInit( int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
362 engineInit( int opmode, Key key, SecureRandom random) argument
471 engineWrap( Key key) argument
[all...]
H A DJCEIESCipher.java68 Key key)
70 IESKey ieKey = (IESKey)key;
87 throw new IllegalArgumentException("not an IE key!");
145 Key key,
150 if (!(key instanceof IESKey))
152 throw new InvalidKeyException("must be passed IE key");
179 IESKey ieKey = (IESKey)key;
224 Key key,
253 engineInit(opmode, key, paramSpec, random);
258 Key key,
67 engineGetKeySize( Key key) argument
143 engineInit( int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
222 engineInit( int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
256 engineInit( int opmode, Key key, SecureRandom random) argument
[all...]
H A DJCERSACipher.java108 Key key)
110 if (key instanceof RSAPrivateKey)
112 RSAPrivateKey k = (RSAPrivateKey)key;
116 else if (key instanceof RSAPublicKey)
118 RSAPublicKey k = (RSAPublicKey)key;
123 throw new IllegalArgumentException("not an RSA key!");
241 Key key,
250 if (key instanceof RSAPublicKey)
258 param = RSAUtil.generatePublicKeyParameter((RSAPublicKey)key);
260 else if (key instanceo
107 engineGetKeySize( Key key) argument
239 engineInit( int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
340 engineInit( int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
365 engineInit( int opmode, Key key, SecureRandom random) argument
[all...]
/dalvik/libcore/crypto/src/main/java/javax/crypto/
H A DSecretKeyFactory.java35 * Secret key factories provide the following functionality:
41 * Which key specifications are supported by the {@link #generateSecret} and
64 * the provider providing this key factory.
66 * the algorithm name for the secret key.
76 * Returns the name of the secret key algorithm.
78 * @return the name of the secret key algorithm.
94 * Creates a new {@code SecretKeyFactory} instance for the specified key
98 * the name of the key algorithm.
99 * @return a secret key factory for the specified key algorith
210 getKeySpec(SecretKey key, Class keySpec) argument
226 translateKey(SecretKey key) argument
[all...]
H A DCipherSpi.java158 * Initializes this cipher instance with the specified key and a source of
162 * encryption, decryption, key wrapping or key unwrapping) depending on
166 * that the specified key cannot provide, the underlying implementation of
179 * @param key
180 * the input key for the operation.
184 * if the specified key cannot be used to initialize this cipher
187 protected abstract void engineInit(int opmode, Key key, SecureRandom random) argument
191 * Initializes this cipher instance with the specified key, algorithm
195 * encryption, decryption, key wrappin
224 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
262 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
504 engineWrap(Key key) argument
553 engineGetKeySize(Key key) argument
[all...]
/dalvik/libcore/luni/src/main/java/java/util/
H A DResourceBundle.java274 * @param key
280 public final Object getObject(String key) { argument
283 Object result = theParent.handleGetObject(key);
290 throw new MissingResourceException(Msg.getString("KA029", last.getClass().getName(), key), last.getClass().getName(), key); //$NON-NLS-1$
296 * @param key
305 public final String getString(String key) { argument
306 return (String) getObject(key);
312 * @param key
321 public final String[] getStringArray(String key) { argument
425 handleGetObject(String key) argument
[all...]
H A DTreeMap.java51 final K key; field in class:TreeMap.MapEntry
56 key = node.keys[offset];
76 return (key == null ? entry.getKey() == null : key.equals(entry
85 return key;
89 if (node.keys[offset] == key) {
92 if (containsKey(key)) {
93 return get(key);
101 return (key == null ? 0 : key
394 checkRange(K key) argument
415 isInRange(K key) argument
436 checkUpperBound(K key) argument
447 checkLowerBound(K key) argument
464 containsKey(Object key) argument
588 get(Object key) argument
709 put(K key, V value) argument
718 remove(Object key) argument
1012 addToLast(Node<K, V> last, K key, V value) argument
1111 containsKey(Object key) argument
1275 get(Object key) argument
1448 put(K key, V value) argument
1845 remove(Object key) argument
[all...]
H A DPropertyResourceBundle.java25 * Strings. The resources must be of the form {@code key=value}, one
114 * @param key
119 public Object handleGetObject(String key) { argument
120 return resources.get(key);
H A DEnumMap.java73 if (key.equals(enumKey)) {
212 return entry.key;
389 * Constructs an empty {@code EnumMap} using the given key type.
401 * Constructs an {@code EnumMap} using the same key type as the given {@code EnumMap} and
478 * Returns whether this {@code EnumMap} contains the specified key.
480 * @param key
481 * the key to search for.
482 * @return {@code true} if this {@code EnumMap} contains the specified key,
486 public boolean containsKey(Object key) { argument
487 if (isValidKeyType(key)) {
576 get(Object key) argument
624 put(K key, V value) argument
662 remove(Object key) argument
732 isValidKeyType(Object key) argument
767 putImpl(K key, V value) argument
[all...]
/dalvik/libcore/security/src/main/java/java/security/
H A DKeyFactory.java28 * public and private key objects and convert keys between their external
54 * the concrete key factory service.
168 * Generates a instance of {@code PublicKey} from the given key
172 * the specification of the public key
173 * @return the public key
183 * Generates a instance of {@code PrivateKey} from the given key
187 * the specification of the private key.
188 * @return the private key.
198 * Returns the key specification for the specified key
209 getKeySpec(Key key, Class<T> keySpec) argument
225 translateKey(Key key) argument
[all...]
H A DUnresolvedPermissionCollection.java161 String key = (String) entry.getKey();
162 permissions.put(key, new Vector(((Collection) entry.getValue())));
181 String key = (String) entry.getKey();
188 if (!element.getName().equals(key)) {
193 klasses.put(key, new HashSet(values));
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/
H A DX509V2CRLGenerator.java91 * Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
212 PrivateKey key)
217 return generateX509CRL(key, "BC", null);
231 PrivateKey key,
237 return generateX509CRL(key, "BC", random);
250 PrivateKey key,
254 return generateX509CRL(key, provider, null);
262 PrivateKey key,
287 sig.initSign(key, random);
291 sig.initSign(key);
211 generateX509CRL( PrivateKey key) argument
230 generateX509CRL( PrivateKey key, SecureRandom random) argument
249 generateX509CRL( PrivateKey key, String provider) argument
261 generateX509CRL( PrivateKey key, String provider, SecureRandom random) argument
[all...]
/dalvik/libcore/security/src/test/java/tests/security/spec/
H A DEncodedKeySpec2Test.java60 // check public key encoding
62 Key key = fact.generatePublic(new X509EncodedKeySpec(encoded));
64 assertTrue("public key encodings were different",
65 isEqual(key, keys.getPublic()));
67 // check private key encoding
69 key = fact.generatePrivate(new PKCS8EncodedKeySpec(encoded));
71 assertTrue("private key encodings were different",
72 isEqual(key, keys.getPrivate()));
/dalvik/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMyKeyStoreSpi.java68 public void engineSetKeyEntry(String alias, Key key, char[] password, argument
74 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) argument
163 public void verify(PublicKey key) { argument
167 public void verify(PublicKey key, String sigProvider) { argument
/dalvik/libcore/archive/src/main/java/java/util/jar/
H A DAttributes.java298 * Removes all key/value pairs from this {@code Attributes}.
305 * Determines whether this {@code Attributes} contains the specified key.
307 * @param key
308 * The key to search for.
309 * @return {@code true} if the key is found, {@code false} otherwise.
311 public boolean containsKey(Object key) { argument
312 return map.containsKey(key);
327 * Returns a set containing map entries for each of the key/value pair
337 * Returns the value associated with the parameter key.
339 * @param key
344 get(Object key) argument
381 put(Object key, Object value) argument
409 remove(Object key) argument
[all...]
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
H A DDESKeySpecTest.java177 * getKey() method testing. Checks that modification of returned key
178 * does not affect the internal key. Also test check an equality of
179 * the key with the key specified in the constructor. The object under
189 byte[] key = {1, 2, 3, 4, 5, 6, 7, 8};
192 ks = new DESKeySpec(key);
199 + "in constructor.", Arrays.equals(key, res));
201 assertFalse("The modification of returned key should not affect"
202 + "the underlying key.", key[
[all...]
/dalvik/libcore/security/src/main/java/javax/security/cert/
H A DCertificate.java31 * verify the binding of a Principal and its public key. Examples are X.509,
103 * Verifies that this certificate was signed with the given public key.
105 * @param key
106 * public key for which verification should be performed.
112 * if an invalid key is detected
118 public abstract void verify(PublicKey key) argument
124 * Verifies that this certificate was signed with the given public key. Uses
127 * @param key
128 * public key for which verification should be performed.
136 * if an invalid key i
142 verify(PublicKey key, String sigProvider) argument
[all...]
/dalvik/libcore-disabled/sound/src/main/java/javax/sound/midi/
H A DMidiFileFormat.java73 public Object getProperty(String key) { argument
74 return properties.get(key);
/dalvik/libcore/crypto/src/main/java/org/apache/harmony/crypto/internal/
H A DNullCipherSpi.java79 public void engineInit(int opmode, Key key, SecureRandom random) argument
85 public void engineInit(int opmode, Key key, AlgorithmParameterSpec params, argument
92 public void engineInit(int opmode, Key key, AlgorithmParameters params, argument
159 public byte[] engineWrap(Key key) throws IllegalBlockSizeException, argument
172 public int engineGetKeySize(Key key) throws InvalidKeyException { argument
/dalvik/libcore/sql/src/test/java/tests/java/sql/
H A DSelectFunctionalityTest.java272 int key = result.getInt("finteger");
274 assertTrue("wrong value of finteger field", value.containsKey(key));
275 assertEquals("wrong value of ftext field", value.get(key), val);
276 value.remove(key);
315 int key = result.getInt("onum");
317 assertTrue("wrong value of onum field", value.containsKey(key));
318 assertEquals("wrong value of cnum field", value.get(key),
320 value.remove(key);
350 int key = result.getInt("cnum");
352 assertTrue("wrong value of cnum field", value.containsKey(key));
[all...]
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DServerKeyExchange.java30 * Represents server key exchange message.
32 * Server key exchange message.</a>
52 private RSAPublicKey key; field in class:ServerKeyExchange
171 if (key != null) {
172 return key;
176 key = (RSAPublicKey) kf.generatePublic(new RSAPublicKeySpec(par1,
181 return key;
/dalvik/libcore/support/src/test/java/tests/support/
H A DSupport_Configuration.java366 StringBuffer key = new StringBuffer(), value = new StringBuffer(), buffer = key;
435 if (key.length() > 0 || buffer == value) {
436 result.put(key.toString(), value.toString());
438 key.setLength(0);
440 buffer = key;
447 if (buffer == key) {
461 if (buffer == key) {
477 if (key.length() > 0 || buffer == value) {
478 result.put(key
[all...]

Completed in 434 milliseconds

1234567891011>>