/libcore/luni/src/main/java/javax/crypto/spec/ |
H A D | SecretKeySpec.java | 31 * A key specification for a <code>SecretKey</code> and also a secret key 42 private final byte[] key; field in class:SecretKeySpec 46 * Creates a new <code>SecretKeySpec</code> for the specified key data and 49 * @param key 50 * the key data. 54 * if the key data or the algorithm name is null or if the key 57 public SecretKeySpec(byte[] key, String algorithm) { argument 58 if (key 93 SecretKeySpec(byte[] key, int offset, int len, String algorithm) argument [all...] |
H A D | DESedeKeySpec.java | 24 * The key specification for a triple-DES (DES-EDE) key. 29 * The length of a DES-EDE key in bytes. 33 private final byte[] key; field in class:DESedeKeySpec 37 * {@link #DES_EDE_KEY_LEN}) bytes of the specified key data. 39 * @param key 40 * the key data. 42 * if the length of the key data is less than 24. 44 * if the key data is null. 46 public DESedeKeySpec(byte[] key) throw argument 72 DESedeKeySpec(byte[] key, int offset) argument 108 isParityAdjusted(byte[] key, int offset) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/support/ |
H A D | I.java | 21 String find(String key); argument
|
H A D | A.java | 27 public String find(String key) { argument 28 return pp.findProp(key);
|
H A D | P.java | 29 public String findProp(String key) { argument 30 return findProp(this.c, key); 33 private String findProp(Class cls, String key) { argument 37 ret = (String) b.getObject(key); 41 ret = findProp(cls.getSuperclass(), key);
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
H A D | RSAPrivateCrtKeyTest.java | 25 RSAPrivateCrtKey key = null; field in class:RSAPrivateCrtKeyTest 30 key = (RSAPrivateCrtKey) gen.generatePrivate(Util.rsaCrtParam); 39 Util.rsaCrtParam.getCrtCoefficient(), key.getCrtCoefficient()); 48 Util.rsaCrtParam.getPrimeExponentP(), key.getPrimeExponentP()); 57 Util.rsaCrtParam.getPrimeExponentQ(), key.getPrimeExponentQ()); 66 Util.rsaCrtParam.getPrimeP(), key.getPrimeP()); 75 Util.rsaCrtParam.getPrimeQ(), key.getPrimeQ()); 84 Util.rsaCrtParam.getPublicExponent(), key.getPublicExponent()); 88 key = null;
|
/libcore/luni/src/main/java/libcore/util/ |
H A D | BasicLruCache.java | 39 * Returns the value for {@code key} if it exists in the cache or can be 44 public synchronized final V get(K key) { argument 45 if (key == null) { 46 throw new NullPointerException("key == null"); 49 V result = map.get(key); 54 result = create(key); 57 map.put(key, result); 64 * Caches {@code value} for {@code key}. The value is moved to the head of 67 * @return the previous value mapped by {@code key}. Although that entry is 70 public synchronized final V put(K key, argument 98 entryEvicted(K key, V value) argument 105 create(K key) argument [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/interfaces/ |
H A D | PBEKeyTest.java | 43 checkPBEKey key = new checkPBEKey(); 45 key.getSerVerUID(), //PBEKey.serialVersionUID 50 checkPBEKey key = new checkPBEKey(); 52 key.getIterationCount(); 56 checkPBEKey key = new checkPBEKey(); 58 key.getPassword(); 62 checkPBEKey key = new checkPBEKey(); 64 key.getSalt();
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
H A D | SecretKeySpecTest.java | 38 * SecretKeySpec(byte[] key, String algorithm) method testing. Tests that 44 byte[] key = new byte[] {1, 2, 3, 4, 5}; 50 + "in the case of empty key."); 57 + "in the case of null key."); 62 new SecretKeySpec(key, null); 68 SecretKeySpec ks = new SecretKeySpec(key, algorithm); 69 key[0] ++; 70 assertFalse("The change of key specified in the constructor " 72 key[0] == ks.getEncoded()[0]); 76 * SecretKeySpec(byte[] key, in [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | ConcurrentMap.java | 20 * {@code ConcurrentMap} as a key or value 32 * If the specified key is not already associated 36 * if (!map.containsKey(key)) 37 * return map.put(key, value); 39 * return map.get(key);}</pre> 43 * @param key key with which the specified value is to be associated 44 * @param value value to be associated with the specified key 45 * @return the previous value associated with the specified key, or 46 * {@code null} if there was no mapping for the key 59 putIfAbsent(K key, V value) argument 85 remove(Object key, Object value) argument 112 replace(K key, V oldValue, V newValue) argument 141 replace(K key, V value) argument [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | Dictionary.java | 48 * Returns the value which is associated with {@code key}. 50 * @param key 51 * the key of the value returned. 52 * @return the value associated with {@code key}, or {@code null} if the 53 * specified key does not exist. 56 public abstract V get(Object key); argument 59 * Returns true if this dictionary has no key/value pairs. 61 * @return {@code true} if this dictionary has no key/value pairs, 78 * Associate {@code key} with {@code value} in this dictionary. If {@code 79 * key} exist 92 put(K key, V value) argument 105 remove(Object key) argument [all...] |
H A D | MissingResourceException.java | 33 String className, key; field in class:MissingResourceException 51 key = resourceName; 72 return key;
|
H A D | MapEntry.java | 25 K key; field in class:MapEntry 33 key = theKey; 37 key = theKey; 57 return (key == null ? entry.getKey() == null : key.equals(entry 66 return key; 75 return (key == null ? 0 : key.hashCode()) 87 return key + "=" + value;
|
H A D | NavigableMap.java | 19 * greater than or equal, and greater than a given key, returning 20 * {@code null} if there is no such key. Similarly, methods 26 * ascending or descending key order. The {@code descendingMap} 68 * Returns a key-value mapping associated with the greatest key 69 * strictly less than the given key, or {@code null} if there is 70 * no such key. 72 * @param key the key 73 * @return an entry with the greatest key les 80 lowerEntry(K key) argument 94 lowerKey(K key) argument 109 floorEntry(K key) argument 123 floorKey(K key) argument 138 ceilingEntry(K key) argument 152 ceilingKey(K key) argument 167 higherEntry(K key) argument 181 higherKey(K key) argument [all...] |
/libcore/support/src/test/java/tests/security/ |
H A D | CipherSymmetricCryptHelper.java | 31 public void test(SecretKey key) { argument 32 test(key, key);
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | UserDataNotification.java | 23 private final String key; field in class:UserDataNotification 33 String key, 38 this.key = key; 54 * Gets value of key parameter 56 * @return value of key parameter 59 return key; 32 UserDataNotification(short operation, String key, Object data, Node src, Node dst) argument
|
/libcore/luni/src/main/java/java/nio/channels/spi/ |
H A D | AbstractSelectableChannel.java | 41 * The collection of key. 82 * Gets this channel's selection key for the specified selector. 86 * @return the selection key for the channel or {@code null} if this channel 91 for (SelectionKey key : keyList) { 92 if (key != null && key.selector() == selector) { 93 return key; 103 * the corresponding selection key is returned. If the channel is not yet 105 * {@code selector} and adds the selection key to this channel's key se [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | ExemptionMechanismSpiTest.java | 66 protected void engineInit(Key key) throws InvalidKeyException, ExemptionMechanismException { argument 67 super.engineInit(key); 72 protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException, ExemptionMechanismException { argument 73 super.engineInit(key, params); 78 protected void engineInit(Key key, AlgorithmParameters params) throws InvalidKeyException, InvalidAlgorithmParameterException, ExemptionMechanismException { argument 79 super.engineInit(key, params); 98 Key key = null; 102 emSpi.engineInit(key); 107 emSpi.engineInit(key, params); 112 emSpi.engineInit(key, parSpe [all...] |
H A D | MockKeyAgreementSpi.java | 34 public void checkKeyType(Key key) throws InvalidKeyException { argument 35 if (!(key instanceof MockKey)) { 43 public void checkKeyType(Key key) throws InvalidKeyException { argument 44 if (!(key instanceof MockKey2)) { 53 public void checkKeyType(Key key) throws InvalidKeyException { argument 57 protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, argument 80 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { argument 81 checkKeyType(key); 85 protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) argument 87 checkKeyType(key); [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/ |
H A D | SystemScope.java | 43 // Identities hash: key is the identity name 46 // Identities hash: key is the public key 90 public synchronized Identity getIdentity(PublicKey key) { argument 91 if (key == null) { 94 return (Identity) keys.get(key); 110 PublicKey key = identity.getPublicKey(); 111 if (key != null && keys.containsKey(key)) { 112 throw new KeyManagementException("key '" [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/support/ |
H A D | I.java | 4 String find(String key); argument
|
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);
|
/libcore/luni/src/main/java/java/io/ |
H A D | SerializationHandleMap.java | 31 /* Actual number of key-value pairs. */ 53 Object key = oldKeys[i]; 55 int index = findIndex(key, keys); 56 keys[index] = key; 62 public int get(Object key) { argument 63 int index = findIndex(key, keys); 64 if (keys[index] == key) { 71 * Returns the index where the key is found at, or the index of the next 72 * empty spot if the key is not found in this table. 74 private int findIndex(Object key, Objec argument 91 getModuloHash(Object key, int length) argument 95 put(Object key, int value) argument 124 remove(Object key) argument [all...] |
/libcore/luni/src/main/java/java/util/prefs/ |
H A D | Preferences.java | 87 * Maximum size in characters allowed for a preferences key. 234 * Gets the {@code String} value mapped to the given key or its default 238 * case, if there is no value mapped to the given key, the stored default 242 * @param key 243 * the preference key. 246 * mapped to the given key or no backing store is available. 247 * @return the preference value mapped to the given key. 251 * if the parameter {@code key} is {@code null}. 253 public abstract String get(String key, String deflt); argument 256 * Gets the {@code boolean} value mapped to the given key o 281 getBoolean(String key, boolean deflt) argument 310 getByteArray(String key, byte[] deflt) argument 338 getDouble(String key, double deflt) argument 367 getFloat(String key, float deflt) argument 396 getInt(String key, int deflt) argument 424 getLong(String key, long deflt) argument 559 put(String key, String value) argument 578 putBoolean(String key, boolean value) argument 603 putByteArray(String key, byte[] value) argument 626 putDouble(String key, double value) argument 649 putFloat(String key, float value) argument 672 putInt(String key, int value) argument 695 putLong(String key, long value) argument 707 remove(String key) argument [all...] |