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

12345678910

/libcore/luni/src/test/java/tests/security/cert/
H A DX509CRLTest.java110 public void verify(PublicKey key) argument
117 public void verify(PublicKey key, String sigProvider) argument
H A DX509Certificate2Test.java236 public void verify(PublicKey key) { argument
239 public void verify(PublicKey key, String sigProvider) { argument
/libcore/luni/src/main/java/java/lang/
H A DSecurityManager.java77 public void checkPropertyAccess(String key) { } argument
/libcore/luni/src/main/java/java/util/
H A DLocale.java591 * key.
641 * Sets the extension identified by {@code key} to {@code value}.
643 * {@code key} must be in the range {@code [a-zA-Z0-9]}.
657 * ({@code key == 'u'}, {@link Locale#UNICODE_LOCALE_EXTENSION}) : Setting
671 * ({@code key == 'x'}, {@link Locale#PRIVATE_USE_EXTENSION}) : Each subtag in a
679 public Builder setExtension(char key, String value) { argument
681 extensions.remove(key);
692 final int minimumLength = (key == PRIVATE_USE_EXTENSION) ? 1 : 2;
702 if (key == UNICODE_LOCALE_EXTENSION) {
709 extensions.put(key, normalizedValu
749 setUnicodeLocaleKeyword(String key, String type) argument
[all...]
/libcore/json/src/test/java/org/json/
H A DParsingTest.java202 assertParseFail("{\"key\":}");
204 assertParseFail("{\"key\":true:}");
260 String key = (String) i.next();
261 result.put(key, canonicalize(object.get(key)));
/libcore/luni/src/main/java/java/util/jar/
H A DManifest.java275 String key = i.next();
276 writeEntry(out, Attributes.Name.NAME, key, encoder, buffer);
277 Attributes attributes = manifest.entries.get(key);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKeyStoreSpiTest.java99 @Override public void engineSetKeyEntry(String alias, Key key, char[] password,
251 public void verify(PublicKey key) throws CertificateException, argument
256 public void verify(PublicKey key, String sigProvider) argument
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DBerInputStream.java798 public void put(Object key, Object entry) { argument
805 if (pool[0][i] == key) {
817 pool[0][i] = key;
822 public Object get(Object key) { argument
828 if (pool[0][i] == key) {
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DNodeImpl.java698 public final Object setUserData(String key, Object data, UserDataHandler handler) { argument
699 if (key == null) {
700 throw new NullPointerException("key == null");
704 ? map.remove(key)
705 : map.put(key, new UserData(data, handler));
709 public final Object getUserData(String key) { argument
710 if (key == null) {
711 throw new NullPointerException("key == null");
714 UserData userData = map.get(key);
/libcore/luni/src/main/java/java/security/cert/
H A DX509CertSelector.java336 * the subject key identifier or {@code null} to disable this
352 * @return the subject key identifier or {@code null} if it is not to be
368 * the authority key identifier, or {@code null} to disable this
386 * @return the authority key identifier, or {@code null} if it is not to be
424 * Sets the criterion for the validity date of the private key.
426 * The private key must be valid at the specified date.
440 * Returns the criterion for the validity date of the private key.
442 * The private key must be valid at the specified date.
476 * Sets the criterion for the subject public key signature algorithm.
478 * The certificate must contain a subject public key wit
512 setSubjectPublicKey(PublicKey key) argument
526 setSubjectPublicKey(byte[] key) argument
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DPriorityBlockingQueue.java41 * secondary key to break ties in primary priority values. For
318 Comparable<? super T> key = (Comparable<? super T>) x;
322 if (key.compareTo((T) e) >= 0)
327 array[k] = key;
356 Comparable<? super T> key = (Comparable<? super T>)x;
365 if (key.compareTo((T) c) <= 0)
370 array[k] = key;
/libcore/luni/src/test/java/libcore/java/security/
H A DProviderTest.java188 String key = (String)k;
192 if (key.startsWith("Provider.id ")) {
197 if (key.indexOf(' ') != -1) {
201 Matcher m = alias.matcher(key);
204 aliases.put(key, type + "." + value);
206 implementations.put(key, value);
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DCipherTest.java121 // leading zeroes in the underlying key material are lost.
241 Key key = ENCRYPT_KEYS.get(algorithm);
242 if (key != null) {
243 return key;
249 key = kf.generatePrivate(keySpec);
252 key = skf.generateSecret(new PBEKeySpec("secret".toCharArray()));
255 key = kg.generateKey();
257 ENCRYPT_KEYS.put(algorithm, key);
258 return key;
263 Key key
2490 public final byte[] key; field in class:CipherTest.CipherTestParam
2500 CipherTestParam(String transformation, byte[] key, byte[] iv, byte[] plaintext, byte[] plaintextPadded, byte[] ciphertext) argument
[all...]
H A DECDHKeyAgreementTest.java51 // Two key pairs and the resulting shared secret for the Known Answer Test
86 throw new RuntimeException("Failed to decode KAT key pairs using default provider", e);
92 * of: first key pair, second key pair, and the {@code KeyAgreement}. This is to check that
331 SecretKey key = keyAgreement.generateSecret("AES");
332 assertEquals("AES", key.getAlgorithm());
333 // The check below will need to change if it's a hardware-backed key.
336 assertTrue(Arrays.equals(KAT_SECRET, key.getEncoded()));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DRuleBasedCollatorTest.java227 CollationKey key = coll.getCollationKey(text);
228 key.hashCode();
232 assertEquals(0, key.compareTo(key2));
/libcore/luni/src/main/java/libcore/icu/
H A DICU.java173 // containing all "keywords" it could parse. An ICU keyword is a key-value pair
177 // - A unicode extension attribute list: In this case the item key is "attribute"
179 // - A unicode extension keyword: In this case, the item key will be larger than
181 // - A BCP-47 extension subtag: In this case, the item key will be exactly one
192 // This is the special key for the unicode attributes
278 String key = skeleton + "\t" + languageTag;
280 String pattern = CACHED_PATTERNS.get(key);
283 CACHED_PATTERNS.put(key, pattern);
/libcore/json/src/main/java/org/json/
H A DJSONObject.java134 String key = (String) entry.getKey();
135 if (key == null) {
136 throw new NullPointerException("key == null");
138 nameValuePairs.put(key, wrap(entry.getValue()));
720 stringer.key(entry.getKey()).value(entry.getValue());
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DTestCertUtils.java349 public void verify(PublicKey key) throws CertificateException, argument
355 public void verify(PublicKey key, String sigProvider) argument
566 public void verify(PublicKey key, String sigProvider) argument
573 public void verify(PublicKey key) throws CertificateException, argument
H A DMDGoldenData.java191 * @param key
197 public static byte[] getDigest(String key) { argument
198 return ((byte[])goldenData.get(key)).clone();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
H A DSAXParserFactoryTest.java130 String key = "javax.xml.parsers.SAXParserFactory = org.apache.harmony.xml.parsers.SAXParserFactoryImpl";
132 ByteArrayInputStream bis = new ByteArrayInputStream(key.getBytes());
/libcore/luni/src/main/java/libcore/net/url/
H A DFileURLConnection.java74 * A set of three key value pairs representing the headers we support.
147 public String getHeaderField(String key) { argument
157 if (headerKeysAndValues[i].equalsIgnoreCase(key)) {
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherInputStream1Test.java257 Key key = kg.generateKey();
260 c.init(Cipher.ENCRYPT_MODE, key);
H A DSecretKeyFactoryTest.java345 * <code>getKeySpec(SecretKey key, Class keySpec)
454 Key key = null;
463 key = kg.generateKey();
465 secKF.translateKey((SecretKey) key);
/libcore/luni/src/main/java/java/util/prefs/
H A DXMLParser.java71 + " <!ATTLIST entry key CDATA #REQUIRED value CDATA #REQUIRED >";
229 flushEmptyElement("entry", new String[] { "key", "value" },
377 String key = entry.getAttribute("key");
379 prefs.put(key, value);
457 String key = node.getAttribute("key");
459 result.setProperty(key, value);
/libcore/luni/src/test/java/libcore/java/util/
H A DEvilMapTest.java45 @Override public V put(K key, V val) { return val; } argument

Completed in 1642 milliseconds

12345678910