/dalvik/libcore/luni/src/test/java/tests/api/java/util/support/ |
H A D | A.java | 10 public String find(String key) { argument 11 return pp.findProp(key);
|
H A D | P.java | 12 public String findProp(String key) { argument 13 return findProp(this.c, key); 16 private String findProp(Class cls, String key) { argument 20 ret = (String)b.getObject(key); 24 ret = findProp(cls.getSuperclass(), key);
|
/dalvik/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | CertificateStub.java | 42 PublicKey key; field in class:CertificateStub 44 public CertificateStub(String format, Principal guarantor, Principal principal, PublicKey key){ argument 48 this.key = key; 98 return key;
|
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/ |
H A D | Header.java | 30 * constructed by hashtable with key indexed in a vector for position lookup. 45 * The key/value pair of the header may be inserted for later use. The key 64 String key = next.getKey(); 65 props.add(key); 72 keyTable.put(key, linkedList); 98 * @param key 101 public void add(String key, String value) { argument 102 if (key == null) { 106 key 125 set(String key, String value) argument 205 get(String key) argument [all...] |
/dalvik/libcore/crypto/src/main/java/javax/crypto/spec/ |
H A D | DESKeySpec.java | 26 * The key specification for a DES key. 31 * The length of a DES key in bytes. 35 private final byte[] key; field in class:DESKeySpec 96 * specified key data. 98 * @param key 99 * the key data. 101 * if the length of the specified key data is less than 8. 103 public DESKeySpec(byte[] key) throws InvalidKeyException { argument 104 this(key, 119 DESKeySpec(byte[] key, int offset) argument 157 isParityAdjusted(byte[] key, int offset) argument 196 isWeak(byte[] key, int offset) argument [all...] |
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/ |
H A D | DSAUtil.java | 21 PublicKey key) 24 if (key instanceof DSAPublicKey) 26 DSAPublicKey k = (DSAPublicKey)key; 32 throw new InvalidKeyException("can't identify DSA public key: " + key.getClass().getName()); 36 PrivateKey key) 39 if (key instanceof DSAPrivateKey) 41 DSAPrivateKey k = (DSAPrivateKey)key; 47 throw new InvalidKeyException("can't identify DSA private key."); 20 generatePublicKeyParameter( PublicKey key) argument 35 generatePrivateKeyParameter( PrivateKey key) argument
|
H A D | RSAUtil.java | 29 RSAPublicKey key) 31 return new RSAKeyParameters(false, key.getModulus(), key.getPublicExponent()); 36 RSAPrivateKey key) 38 if (key instanceof RSAPrivateCrtKey) 40 RSAPrivateCrtKey k = (RSAPrivateCrtKey)key; 48 RSAPrivateKey k = key; 28 generatePublicKeyParameter( RSAPublicKey key) argument 35 generatePrivateKeyParameter( RSAPrivateKey key) argument
|
H A D | DHUtil.java | 22 PublicKey key) 25 if (key instanceof DHPublicKey) 27 DHPublicKey k = (DHPublicKey)key; 33 throw new InvalidKeyException("can't identify DH public key."); 37 PrivateKey key) 40 if (key instanceof DHPrivateKey) 42 DHPrivateKey k = (DHPrivateKey)key; 48 throw new InvalidKeyException("can't identify DH private key."); 21 generatePublicKeyParameter( PublicKey key) argument 36 generatePrivateKeyParameter( PrivateKey key) argument
|
H A D | PBE.java | 44 * uses the appropriate mixer to generate the key and IV if neccessary. 106 * construct a key and iv (if neccessary) suitable for use with a 116 throw new IllegalArgumentException("Need a PBEParameter spec with a PBE key."); 121 byte[] key = pbeKey.getEncoded(); 126 key = new byte[2]; 129 generator.init(key, pbeParam.getSalt(), pbeParam.getIterationCount()); 156 for (int i = 0; i != key.length; i++) 158 key[i] = 0; 165 * generate a PBE based key suitable for a MAC algorithm, the 166 * key siz [all...] |
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/support/ |
H A D | MyExemptionMechanismSpi.java | 66 protected void engineInit(Key key) throws InvalidKeyException, argument 68 if (key == null) { 69 throw new InvalidKeyException("key is null"); 71 if (!(key instanceof tmpKey)) { 72 throw new ExemptionMechanismException("Incorrect key"); 77 protected void engineInit(Key key, AlgorithmParameters params) argument 80 if (key == null) { 81 throw new InvalidKeyException("key is null"); 83 if (!(key instanceof tmpKey)) { 84 throw new ExemptionMechanismException("Incorrect key"); 92 engineInit(Key key, AlgorithmParameterSpec params) argument [all...] |
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/x509/ |
H A D | X509NameElementList.java | 13 * List of elements of an X509 name. Each element has a key, a value, and 17 /** null-ok; key #0 */ 20 /** null-ok; key #1 */ 23 /** null-ok; key #2 */ 26 /** null-ok; key #3 */ 43 * key then value, etc. 58 * @param key non-null; the key 61 public void add(DERObjectIdentifier key, String value) { argument 62 add(key, valu 72 add(DERObjectIdentifier key, String value, boolean added) argument [all...] |
/dalvik/libcore/security/src/test/java/tests/security/interfaces/ |
H A D | RSAPrivateCrtKeyTest.java | 29 RSAPrivateCrtKey key = null; field in class:RSAPrivateCrtKeyTest 34 key = (RSAPrivateCrtKey) gen.generatePrivate(Util.rsaCrtParam); 49 Util.rsaCrtParam.getCrtCoefficient(), key.getCrtCoefficient()); 64 Util.rsaCrtParam.getPrimeExponentP(), key.getPrimeExponentP()); 79 Util.rsaCrtParam.getPrimeExponentQ(), key.getPrimeExponentQ()); 94 Util.rsaCrtParam.getPrimeP(), key.getPrimeP()); 109 Util.rsaCrtParam.getPrimeQ(), key.getPrimeQ()); 124 Util.rsaCrtParam.getPublicExponent(), key.getPublicExponent()); 128 key = null;
|
/dalvik/libcore/crypto/src/main/java/javax/crypto/ |
H A D | ExemptionMechanismSpi.java | 39 * Generates the result key blob for this exemption mechanism. 41 * @return the result key blob for this exemption mechanism. 49 * Generates the result key blob for this exemption mechanism and stores it 53 * the output buffer for the result key blob. 58 * if the provided buffer is too small for the result key blob. 79 * key. 81 * @param key 82 * the key to initialize this instance with. 84 * if the key cannot be used to initialize this mechanism. 88 protected abstract void engineInit(Key key) throw argument 107 engineInit(Key key, AlgorithmParameters params) argument 127 engineInit(Key key, AlgorithmParameterSpec params) argument [all...] |
H A D | SecretKeyFactorySpi.java | 37 * Generate a secret key from the specified key specification. 40 * the key specification. 41 * @return a secret key. 43 * if the specified key specification cannot be used to generate 44 * a secret key. 50 * Returns the key specification of the specified secret key. 52 * @param key 53 * the secret key t 62 engineGetKeySpec(SecretKey key, Class keySpec) argument 76 engineTranslateKey(SecretKey key) argument [all...] |
/dalvik/libcore/luni/src/main/java/java/util/ |
H A D | IdentityHashMap.java | 49 * The internal data structure to hold key value pairs This array holds keys 54 /* Actual number of key-value pairs. */ 80 * differentiate a literal 'null' key value pair from an empty spot in the 102 return (key == entry.getKey()) && (value == entry.getValue()); 109 return System.identityHashCode(key) 115 return key + "=" + value; //$NON-NLS-1$ 291 * A map of (key,value) pairs to copy into the IdentityHashMap. 319 * Returns whether this map contains the specified key. 321 * @param key 322 * the key t 327 containsKey(Object key) argument 366 get(Object key) argument 381 getEntry(Object key) argument 417 findIndex(Object key, Object[] array) argument 434 getModuloHash(Object key, int length) argument 449 put(K key, V value) argument 529 remove(Object key) argument [all...] |
H A D | Map.java | 23 * in which each key is mapped to a single value. The class of the objects 29 * the key/value pairs. 34 * {@code Map.Entry} is a key/value mapping contained in a {@code Map}. 40 * same key and value. 51 * Returns the key. 53 * @return the key 95 * Returns whether this {@code Map} contains the specified key. 97 * @param key 98 * the key to search for. 99 * @return {@code true} if this map contains the specified key, 102 containsKey(Object key) argument 144 get(Object key) argument 193 put(K key, V value) argument 223 remove(Object key) argument [all...] |
/dalvik/libcore/xml/src/main/java/org/w3c/dom/ |
H A D | UserDataHandler.java | 16 * When associating an object to a key on a node using 59 * @param key Specifies the key for which this handler is being called. 67 String key, 66 handle(short operation, String key, Object data, Node src, Node dst) argument
|
/dalvik/vm/ |
H A D | Properties.h | 35 char* dvmGetProperty(const char* key);
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/ |
H A D | OrderedTable.java | 17 * key-value pairs directly, resorting to an external collection only 21 /** null-ok; key #0 */ 24 /** null-ok; key #1 */ 27 /** null-ok; key #2 */ 30 /** null-ok; key #3 */ 47 * key then value, etc. 59 * @param key non-null; the key 62 public void add(DERObjectIdentifier key, Object value) { argument 63 if (key 132 get(DERObjectIdentifier key) argument [all...] |
/dalvik/libcore/security/src/main/java/java/security/ |
H A D | KeyFactorySpi.java | 32 * Generates a instance of {@code PublicKey} from the given key 36 * the specification of the public key. 37 * @return the public key. 45 * Generates a instance of {@code PrivateKey} from the given key 49 * the specification of the private key. 50 * @return the private key. 58 * Returns the key specification for the specified key. 60 * @param key 61 * the key fro 69 engineGetKeySpec(Key key, Class<T> keySpec) argument 83 engineTranslateKey(Key key) argument [all...] |
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
H A D | CipherWrapThread.java | 34 Key key = kg.generateKey(); 39 cip.init(Cipher.WRAP_MODE, key); 40 byte[] output = cip.wrap(key); 41 cip.init(Cipher.UNWRAP_MODE, key); 44 checkEncodedData(key.getFormat().getBytes(), decrypted.getFormat().getBytes()); 45 checkEncodedData(key.getEncoded(), decrypted.getEncoded());
|
/dalvik/libcore/nio/src/main/java/java/nio/channels/spi/ |
H A D | AbstractSelector.java | 30 * {@code end}. It also holds the cancellation and the deletion of the key 114 * the attachment for the selection key. 115 * @return the key related to the channel and this selector. 121 * Deletes the key from the channel's key set. 123 * @param key 124 * the key. 126 protected final void deregister(AbstractSelectionKey key) { argument 127 ((AbstractSelectableChannel) key.channel()).deregister(key); 173 cancel(SelectionKey key) argument [all...] |
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/provider/crypto/ |
H A D | DSAKeyFactoryImpl.java | 41 * This method generates a DSAPrivateKey object from the provided key specification. 44 * keySpec - the specification (key material) for the DSAPrivateKey. 69 * This method generates a DSAPublicKey object from the provided key specification. 72 * keySpec - the specification (key material) for the DSAPublicKey. 97 * This method returns a specification for the supplied key. 102 * @param key - 113 protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec) argument 118 if (key != null) { 123 if (key instanceof DSAPrivateKey) { 124 DSAPrivateKey privateKey = (DSAPrivateKey) key; 186 engineTranslateKey(Key key) argument [all...] |
/dalvik/libcore/luni/src/main/java/java/lang/ |
H A D | ThreadLocal.java | 140 * (hash & (table.length - 1)) points to a key and not a value. 224 InheritableThreadLocal key = reference.get(); 225 if (key != null) { 229 table[i + 1] = key.childValue(fromParent.table[i + 1]); 231 // The key was reclaimed. 353 ThreadLocal<?> key = reference.get(); 354 if (key != null) { 356 add(key, oldTable[i + 1]); 358 // The key was reclaimed. 371 void add(ThreadLocal<?> key, Objec argument 386 put(ThreadLocal<?> key, Object value) argument 430 getAfterMiss(ThreadLocal<?> key) argument 510 remove(ThreadLocal<?> key) argument [all...] |
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | KeyAgreementSpiTest.java | 54 protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, argument 56 return super.engineDoPhase(key, lastPhase); 77 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { argument 78 super.engineInit(key, random); 82 protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) argument 84 super.engineInit(key, params, random); 119 Key key = null; 121 kaSpi.engineInit(key, new SecureRandom()); 127 kaSpi.engineInit(key, params, new SecureRandom());
|