Searched refs:key (Results 101 - 125 of 312) sorted by relevance

1234567891011>>

/dalvik/libcore/security/src/test/java/tests/security/interfaces/
H A DDSAPrivateKeyTest.java50 DSAPrivateKey key = (DSAPrivateKey) keyPair.getPrivate();
51 assertNotNull("Invalid X value", key.getX());
H A DRSAPrivateKeyTest.java45 RSAPrivateKey key = (RSAPrivateKey) gen.generatePrivate(new RSAPrivateKeySpec(
47 assertEquals("invalid private exponent", d, key.getPrivateExponent());
H A DRSAPublicKeyTest.java45 RSAPublicKey key = (RSAPublicKey) gen.generatePublic(new RSAPublicKeySpec(
47 assertEquals("invalid public exponent", e, key.getPublicExponent());
/dalvik/libcore/text/src/main/java/java/text/
H A DCollationKey.java43 * the {@code CollationKey}, but once the key is created, binary comparisons
90 CollationKey(String source, com.ibm.icu4jni.text.CollationKey key) { argument
92 this.icuKey = key;
96 * Compares this object to the specified collation key object to determine
100 * the collation key object to compare this object to.
112 * and have the same source string and collation key. Both instances of
117 * @return {@code true} if {@code object} is equal to this collation key;
131 * Returns the string from which this collation key was created.
133 * @return the source string of this collation key.
153 * Returns the collation key a
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/xpath/compiler/
H A DKeywords.java120 /** key function string (XSLT). */
121 public static final String FUNC_KEY_STRING = "key";
271 static Object getAxisName(String key){ argument
272 return m_axisnames.get(key);
275 static Object lookupNodeTest(String key){ argument
276 return m_nodetests.get(key);
279 static Object getKeyWord(String key){ argument
280 return m_keywords.get(key);
283 static Object getNodeType(String key){ argument
284 return m_nodetypes.get(key);
[all...]
/dalvik/libcore/luni/src/main/java/java/util/
H A DLinkedHashMap.java31 * order in which keys were inserted. Reinserting an already-present key doesn't change the
159 LinkedEntry(K key, V value, int hash, HashMapEntry<K, V> next, argument
161 super(key, value, hash, next);
180 @Override void addNewEntry(K key, V value, int hash, int index) { argument
186 remove(eldest.key);
192 key, value, hash, table[index], header, oldTail);
202 remove(eldest.key);
216 K key, V value, int hash, HashMapEntry<K, V> next) {
220 = new LinkedEntry<K,V>(key, value, hash, next, header, oldTail);
225 * Returns the value of the mapping with the specified key
215 constructorNewEntry( K key, V value, int hash, HashMapEntry<K, V> next) argument
232 get(Object key) argument
[all...]
H A DListResourceBundle.java41 * elements, the first is the resource key string and the second is the
114 public final Object handleGetObject(String key) { argument
116 if (key == null) {
119 return table.get(key);
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
H A DSecurity2Test.java61 String key = (String) entry.getKey();
63 if (!isAlias(key) && !isProviderData(key)) {
64 addOrIncrementTable(allSupported, key);
77 String key = (String) entry.getKey();
78 if (isAlias(key)) {
79 String aliasVal = key.substring("ALG.ALIAS.".length());
123 * @param key
126 private boolean isProviderData(String key) { argument
127 return key
134 isAlias(String key) argument
142 addOrIncrementTable(Hashtable<String, Integer> table, String key) argument
[all...]
H A DKeyFactoryTest.java214 TestPublicKey key = new TestPublicKey();
215 TestPublicKeySpec keySpec = new TestPublicKeySpec(key);
218 assertTrue(Arrays.equals(key.encoded, publicKey.getEncoded()));
268 TestPrivateKey key = new TestPrivateKey();
269 TestPrivateKeySpec keySpec = new TestPrivateKeySpec(key);
272 assertTrue(Arrays.equals(key.getEncoded(), privateKey.getEncoded()));
336 Key key = keys[i];
338 String message = "getKeySpec(" + key.toString() + ", " + keySpec.toString() + ")";
340 KeySpec spec = factory.getKeySpec(key, keySpec);
372 Key key
491 engineGetKeySpec(Key key, Class<T> keySpec) argument
535 engineTranslateKey(Key key) argument
550 TestPrivateKeySpec(TestPrivateKey key) argument
559 TestPublicKeySpec(TestPublicKey key) argument
[all...]
/dalvik/vm/compiler/codegen/
H A DCompilerCodegen.h62 int dvmCompilerTargetOptHint(int key);
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherPBEThread.java44 SecretKey key = skf.generateSecret(keySpec);
52 cip.init(Cipher.ENCRYPT_MODE, key, parSpec);
55 cip.init(Cipher.DECRYPT_MODE, key, parSpec);
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyKeyAgreementSpi.java45 protected Key engineDoPhase(Key key, boolean lastPhase) argument
75 protected void engineInit(Key key, SecureRandom random) argument
81 protected void engineInit(Key key, AlgorithmParameterSpec params, argument
H A DMyCipher.java82 protected void engineInit(int opmode, Key key, SecureRandom random) argument
87 protected void engineInit(int opmode, Key key, argument
93 protected void engineInit(int opmode, Key key, AlgorithmParameters params, argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/generators/
H A DOpenSSLPBEParametersGenerator.java43 * the derived key function, the ith hash of the password and the salt.
49 byte[] key = new byte[bytesNeeded];
60 System.arraycopy(buf, 0, key, offset, len);
75 return key;
79 * Generate a key parameter derived from the password, salt, and iteration
82 * @param keySize the size of the key we want (in bits)
84 * @exception IllegalArgumentException if the key length larger than the base hash size.
97 * Generate a key with initialisation vector parameter derived from
101 * @param keySize the size of the key we want (in bits)
119 * Generate a key paramete
[all...]
/dalvik/libcore/security/src/main/java/java/security/
H A DSecurity.java352 * for example: "MessageDigest.SHA" The value associated with the key must
382 String key = entry.getKey();
385 int i = key.indexOf(' ');
386 int j = key.indexOf('.');
401 attribute = key.substring(i + 1);
406 key = key.substring(0, i);
408 String serv = key.substring(0, j);
409 String alg = key.substring(j + 1);
438 * specified {@code key}) t
448 getProperty(String key) argument
479 setProperty(String key, String datnum) argument
[all...]
H A DProvider.java220 // Do it as in put(Object key, Object value).
234 Object key;
238 key = entry.getKey();
239 if (key instanceof String && ((String) key).startsWith("Provider.")) { //$NON-NLS-1$
244 super.put(key, value);
245 if (changedProperties.remove(key) == null) {
246 removeFromPropertyServiceTable(key);
248 changedProperties.put(key, value);
272 * Maps the specified {@code key} propert
291 put(Object key, Object value) argument
332 remove(Object key) argument
652 removeFromPropertyServiceTable(Object key) argument
874 getPropertyIgnoreCase(String key) argument
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/
H A DX509V1CertificateGenerator.java90 * Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
112 * Set the subject distinguished name. The subject describes the entity associated with the public key.
121 PublicKey key)
126 new ByteArrayInputStream(key.getEncoded())).readObject()));
130 throw new IllegalArgumentException("unable to process key - " + e.toString());
158 PrivateKey key)
163 return generateX509Certificate(key, "BC", null);
176 PrivateKey key,
182 return generateX509Certificate(key, "BC", random);
196 PrivateKey key,
120 setPublicKey( PublicKey key) argument
157 generateX509Certificate( PrivateKey key) argument
175 generateX509Certificate( PrivateKey key, SecureRandom random) argument
195 generateX509Certificate( PrivateKey key, String provider) argument
208 generateX509Certificate( PrivateKey key, String provider, SecureRandom random) argument
[all...]
H A DX509V3CertificateGenerator.java89 * Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
111 * Set the subject distinguished name. The subject describes the entity associated with the public key.
120 PublicKey key)
125 new ByteArrayInputStream(key.getEncoded())).readObject()));
129 throw new IllegalArgumentException("unable to process key - " + e.toString());
228 PrivateKey key)
233 return generateX509Certificate(key, "BC", null);
247 PrivateKey key,
253 return generateX509Certificate(key, "BC", random);
266 PrivateKey key,
119 setPublicKey( PublicKey key) argument
227 generateX509Certificate( PrivateKey key) argument
246 generateX509Certificate( PrivateKey key, SecureRandom random) argument
265 generateX509Certificate( PrivateKey key, String provider) argument
278 generateX509Certificate( PrivateKey key, String provider, SecureRandom random) argument
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/x509/
H A DX509V1CertificateGenerator.java77 * Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
94 * Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
116 * Set the subject distinguished name. The subject describes the entity associated with the public key.
132 * Set the subject distinguished name. The subject describes the entity associated with the public key.
141 PublicKey key)
146 new ByteArrayInputStream(key.getEncoded())).readObject()));
150 throw new IllegalArgumentException("unable to process key - " + e.toString());
184 PrivateKey key)
189 return generateX509Certificate(key, "BC", null);
202 PrivateKey key,
140 setPublicKey( PublicKey key) argument
183 generateX509Certificate( PrivateKey key) argument
201 generateX509Certificate( PrivateKey key, SecureRandom random) argument
221 generateX509Certificate( PrivateKey key, String provider) argument
234 generateX509Certificate( PrivateKey key, String provider, SecureRandom random) argument
[all...]
H A DX509V3CertificateGenerator.java80 * Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
97 * Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
119 * Set the subject distinguished name. The subject describes the entity associated with the public key.
135 * Set the subject distinguished name. The subject describes the entity associated with the public key.
144 PublicKey key)
149 new ByteArrayInputStream(key.getEncoded())).readObject()));
153 throw new IllegalArgumentException("unable to process key - " + e.toString());
302 PrivateKey key)
307 return generateX509Certificate(key, "BC", null);
321 PrivateKey key,
143 setPublicKey( PublicKey key) argument
301 generateX509Certificate( PrivateKey key) argument
320 generateX509Certificate( PrivateKey key, SecureRandom random) argument
339 generateX509Certificate( PrivateKey key, String provider) argument
352 generateX509Certificate( PrivateKey key, String provider, SecureRandom random) argument
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/macs/
H A DHMac.java112 byte[] key = ((KeyParameter)params).getKey();
114 if (key.length > blockLength)
116 digest.update(key, 0, key.length);
125 System.arraycopy(key, 0, inputPad, 0, key.length);
126 for (int i = key.length; i < inputPad.length; i++)
/dalvik/libcore/json/src/test/java/org/json/
H A DSelfUseTest.java55 @Override public boolean optBoolean(String key, boolean defaultValue) {
57 return super.optBoolean(key, defaultValue);
59 @Override public double optDouble(String key, double defaultValue) {
61 return super.optDouble(key, defaultValue);
63 @Override public int optInt(String key, int defaultValue) {
65 return super.optInt(key, defaultValue);
67 @Override public long optLong(String key, long defaultValue) {
69 return super.optLong(key, defaultValue);
71 @Override public String optString(String key, String defaultValue) {
73 return super.optString(key, defaultValu
[all...]
/dalvik/libcore/luni-kernel/src/main/java/java/lang/
H A DSystem.java471 * @param key
475 * if the argument {@code key} is {@code null}.
477 * if the argument {@code key} is empty.
483 public static String clearProperty(String key) { argument
484 if (key == null) {
487 if (key.length() == 0) {
493 secMgr.checkPermission(new PropertyPermission(key, "write"));
495 return (String)internalGetProperties().remove(key);
701 public boolean containsKey(Object key) { argument
702 if (key
723 get(Object key) argument
739 put(Object key, Object value) argument
747 remove(Object key) argument
[all...]
/dalvik/libcore/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/
H A DMockAbstractPreferences.java135 public String getSpi(String key) { argument
140 if (null == key) {
143 return result == returnNull ? null : attr.getProperty(key);
174 public void removeSpi(String key) { argument
179 if (null == key) {
182 attr.remove(key);
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/
H A DJCEMac.java62 Key key,
68 if (key == null)
70 throw new InvalidKeyException("key is null");
73 if (key instanceof JCEPBEKey)
75 JCEPBEKey k = (JCEPBEKey)key;
92 param = new ParametersWithIV(new KeyParameter(key.getEncoded()), ((IvParameterSpec)params).getIV());
96 param = new KeyParameter(key.getEncoded());
502 // // for the key generation as is used in the HMAC, so that
61 engineInit( Key key, AlgorithmParameterSpec params) argument

Completed in 887 milliseconds

1234567891011>>