/libcore/luni/src/main/java/java/security/ |
H A D | Signature.java | 190 private static Engine.SpiAndProvider tryAlgorithm(Key key, Provider provider, String algorithm) { argument 196 return tryAlgorithmWithProvider(key, service); 203 Engine.SpiAndProvider sap = tryAlgorithmWithProvider(key, service); 211 private static Engine.SpiAndProvider tryAlgorithmWithProvider(Key key, Provider.Service service) { argument 213 if (key != null && !service.supportsParameter(key)) { 258 * using the public key of the identity whose signature is going to be 262 * the public key. 278 * has a key usage parameter that indicates, that this certificate is not to 310 throw new InvalidKeyException("The public key i 713 getSpi(Key key) argument [all...] |
H A D | Identity.java | 94 throw new KeyManagementException("Cert's public key does not match Identity's public key"); 230 * @param key 236 public void setPublicKey(PublicKey key) throws KeyManagementException { argument 238 if ((scope != null) && (key != null)) { 239 Identity i = scope.getIdentity(key); 242 throw new KeyManagementException("key already used in scope"); 245 this.publicKey = key;
|
/libcore/support/src/test/java/tests/resources/x509/ |
H A D | create.sh | 25 openssl req -config ${DIR}/default.cnf -new -key ${DIR}/privkey.pem -nodes -batch > /tmp/cert-rsa-req.pem 40 openssl req -config ${DIR}/default.cnf -new -key ${DIR}/privkey.pem -nodes -batch | openssl x509 -extfile ${DIR}/default.cnf -extensions keyUsage_extraLong_cert -req -signkey ${DIR}/privkey.pem -outform d > ${DIR}/cert-keyUsage-extraLong.der 42 openssl req -config ${DIR}/default.cnf -new -key ${DIR}/privkey.pem -nodes -batch | openssl x509 -extfile ${DIR}/default.cnf -extensions extendedKeyUsage_cert -req -signkey ${DIR}/privkey.pem -outform d > ${DIR}/cert-extendedKeyUsage.der 44 openssl req -config ${DIR}/default.cnf -new -key ${DIR}/privkey.pem -nodes -batch | openssl x509 -extfile ${DIR}/default.cnf -extensions ca_cert -req -signkey ${DIR}/privkey.pem -outform d > ${DIR}/cert-ca.der 46 openssl req -config ${DIR}/default.cnf -new -key ${DIR}/privkey.pem -nodes -batch | openssl x509 -extfile ${DIR}/default.cnf -extensions userWithPathLen_cert -req -signkey ${DIR}/privkey.pem -outform d > ${DIR}/cert-userWithPathLen.der 48 openssl req -config ${DIR}/default.cnf -new -key ${DIR}/privkey.pem -nodes -batch | openssl x509 -extfile ${DIR}/default.cnf -extensions caWithPathLen_cert -req -signkey ${DIR}/privkey.pem -outform d > ${DIR}/cert-caWithPathLen.der 50 openssl req -config ${DIR}/default.cnf -new -key ${DIR}/privkey.pem -nodes -batch | openssl x509 -extfile ${DIR}/default.cnf -extensions alt_other_cert -req -signkey ${DIR}/privkey.pem -outform d > ${DIR}/cert-alt-other.der 52 openssl req -config ${DIR}/default.cnf -new -key ${DIR}/privkey.pem -nodes -batch | openssl x509 -extfile ${DIR}/default.cnf -extensions alt_email_cert -req -signkey ${DIR}/privkey.pem -outform d > ${DIR}/cert-alt-email.der 54 openssl req -config ${DIR}/default.cnf -new -key ${DIR}/privkey.pem -nodes -batch | openssl x509 -extfile ${DIR}/default.cnf -extensions alt_dns_cert -req -signkey ${DIR}/privkey.pem -outform d > ${DIR}/cert-alt-dns.der 56 openssl req -config ${DIR}/default.cnf -new -key [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
H A D | RuleBasedCollatorICU.java | 98 byte[] key = NativeCollation.getSortKey(address, source); 99 if (key == null) { 102 return new CollationKeyICU(source, key); 127 return 42; // No-one uses RuleBasedCollatorICU as a hash key.
|
/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/support/src/test/java/tests/security/ |
H A D | AlgorithmParameterSymmetricHelper.java | 61 Key key = generator.generateKey(); 79 cipher.init(Cipher.ENCRYPT_MODE, key, parameters); 96 cipher.init(Cipher.DECRYPT_MODE, key, parameters);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | IdentityHashMapTest.java | 142 map.put("key", "value"); 149 "key", keys.iterator().next()); 151 map2.put("key", "value2"); 171 assertTrue("Returned false for valid key", hm 173 assertTrue("Returned true for copy of valid key", !hm 175 assertTrue("Returned true for invalid key", !hm.containsKey("KKDKDKD")); 179 assertTrue("Failed with null key", m.containsKey(null)); 180 assertTrue("Failed with missing key matching null hash", !m 218 assertNull("Get returned non-null for non existent key", 221 assertEquals("Get returned incorecct value for existing key", "HELL [all...] |
/libcore/luni/src/main/java/java/net/ |
H A D | CookieManager.java | 209 String key = entry.getKey(); 211 if (key != null && (key.equalsIgnoreCase(VERSION_ZERO_HEADER) 212 || key.equalsIgnoreCase(VERSION_ONE_HEADER))) {
|
/libcore/luni/src/main/java/javax/security/cert/ |
H A D | X509Certificate.java | 107 public void verify(PublicKey key) throws CertificateException, 111 cert.verify(key); 117 public void verify(PublicKey key, String sigProvider) 122 cert.verify(key, sigProvider);
|
/libcore/luni/src/test/java/libcore/java/security/ |
H A D | OldDHTest.java | 46 KeyPair key = gen.generateKeyPair();
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | IdentityScopeStub.java | 86 public Identity getIdentity(PublicKey key) { argument
|
H A D | MyKeyStore.java | 92 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/javax/security/cert/ |
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/main/java/java/security/cert/ |
H A D | Certificate.java | 34 * verify the binding of a Principal and its public key. Examples are X.509, 123 * Verifies that this certificate was signed with the given public key. 125 * @param key 126 * PublicKey public key for which verification should be 133 * if an invalid key is detected. 139 public abstract void verify(PublicKey key) argument 147 * Verifies that this certificate was signed with the given public key. It 150 * @param key 151 * PublicKey public key for which verification should be 160 * if an invalid key i 166 verify(PublicKey key, String sigProvider) argument [all...] |
H A D | X509CRL.java | 104 * corresponding private key to the specified public key. 106 * @param key 107 * the public key to verify this CRL with. 113 * if the specified key is invalid. 119 public abstract void verify(PublicKey key) argument 126 * corresponding private key to the specified public key. The signature 129 * @param key 130 * the public key t 144 verify(PublicKey key, String sigProvider) argument [all...] |
/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/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
H A D | MyCertificate.java | 71 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/tests/security/cert/ |
H A D | CertificateTest.java | 242 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;
|
/libcore/luni/src/main/java/java/lang/ |
H A D | System.java | 811 * Returns an array of "key=value" strings containing information not otherwise 818 * assignment in the form "key=value". 823 String key = assignment.substring(0, split); 825 p.put(key, value); 1127 public Object put(Object key, Object value) { argument 1128 if (defaults.containsKey(key)) { 1129 logE("Ignoring attempt to set property \"" + key + 1131 return defaults.get(key); 1134 return super.put(key, value); 1138 public Object remove(Object key) { argument 1163 get(Object key) argument 1167 containsKey(Object key) argument [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | SSLSessionTest.java | 289 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/main/java/java/util/concurrent/ |
H A D | ConcurrentHashMap.java | 51 * onset. (More formally, an update operation for a given key bears a 53 * that key reporting the updated value.) For aggregate operations 95 * does <em>not</em> allow {@code null} to be used as a key or value. 117 * key-value mapping is held in a Node. Most nodes are instances 118 * of the basic Node class with hash, key, value, and next 127 * because they have negative hash fields and null key and value 148 * key/hash distributions. Other update operations (insert, 229 * contains the next table as its key. On encountering a 426 final K key; field in class:ConcurrentHashMap.Node 430 Node(int hash, K key, argument 744 get(Object key) argument 773 containsKey(Object key) argument 815 put(K key, V value) argument 820 putVal(K key, V value, boolean onlyIfAbsent) argument 906 remove(Object key) argument 915 replaceNode(Object key, V value, Object cv) argument 1338 putIfAbsent(K key, V value) argument 1347 remove(Object key, Object value) argument 1358 replace(K key, V oldValue, V newValue) argument 1371 replace(K key, V value) argument 1867 TreeNode(int hash, K key, V val, Node<K,V> next, TreeNode<K,V> parent) argument 2599 final K key; // non-null field in class:ConcurrentHashMap.MapEntry 2602 MapEntry(K key, V val, ConcurrentHashMap<K,V> map) argument [all...] |
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
H A D | OldPreferencesTest.java | 41 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/luni/src/main/java/java/awt/font/ |
H A D | NumericShaper.java | 416 /** The key. */ 417 private int key; field in class:NumericShaper 793 fDefaultContextIndex = key; 796 fSingleRangeIndex = key; 809 key = fDefaultContextIndex; 811 key = fSingleRangeIndex;
|
/libcore/luni/src/main/java/org/apache/harmony/security/utils/ |
H A D | AlgNameMapper.java | 188 String key = (String)me.getKey(); 189 if (key.startsWith(keyPrfix2find)) { 190 String alias = key.substring(keyPrfix2find.length());
|