Searched refs:key (Results 1 - 25 of 300) sorted by relevance

1234567891011>>

/libcore/ojluni/src/main/java/javax/crypto/spec/
H A DDESedeKeySpec.java31 * This class specifies a DES-EDE ("triple-DES") key.
40 * The constant which defines the length of a DESede key in bytes.
44 private byte[] key; field in class:DESedeKeySpec
48 * <code>key</code> as the key material for the DES-EDE key.
50 * <p> The bytes that constitute the DES-EDE key are those between
51 * <code>key[0]</code> and <code>key[23]</code> inclusive
53 * @param key th
61 DESedeKeySpec(byte[] key) argument
83 DESedeKeySpec(byte[] key, int offset) argument
114 isParityAdjusted(byte[] key, int offset) argument
[all...]
H A DSecretKeySpec.java34 * This class specifies a secret key in a provider-independent fashion.
41 * a byte array and have no key parameters associated with them, e.g., DES or
55 * The secret key.
59 private byte[] key; field in class:SecretKeySpec
62 * The name of the algorithm associated with this key.
69 * Constructs a secret key from the given byte array.
72 * secret key of the specified algorithm. For example, if the algorithm is
73 * DES, this constructor does not check if <code>key</code> is 8 bytes
76 * <i>key specification</i> class (in this case:
80 * @param key th
91 SecretKeySpec(byte[] key, String algorithm) argument
140 SecretKeySpec(byte[] key, int offset, int len, String algorithm) argument
[all...]
H A DDESKeySpec.java31 * This class specifies a DES key.
40 * The constant which defines the length of a DES key in bytes.
44 private byte[] key; field in class:DESKeySpec
50 * each is both a key and a dual giving 12 keys with duals. The last
117 * <code>key</code> as the key material for the DES key.
119 * <p> The bytes that constitute the DES key are those between
120 * <code>key[0]</code> and <code>key[
130 DESKeySpec(byte[] key) argument
153 DESKeySpec(byte[] key, int offset) argument
186 isParityAdjusted(byte[] key, int offset) argument
219 isWeak(byte[] key, int offset) argument
[all...]
/libcore/ojluni/src/main/java/sun/util/locale/
H A DExtension.java36 private final char key; field in class:Extension
39 protected Extension(char key) { argument
40 this.key = key;
43 Extension(char key, String value) { argument
44 this.key = key;
50 this.id = key + LanguageTag.SEP + value;
54 return key;
H A DLocaleObjectCache.java51 public V get(K key) { argument
55 CacheEntry<K, V> entry = map.get(key);
60 V newVal = createObject(key);
61 // make sure key is normalized *after* the object creation
62 // so that newVal is assured to be created from a valid key.
63 key = normalizeKey(key);
64 if (key == null || newVal == null) {
65 // subclass must return non-null key/value object
69 CacheEntry<K, V> newEntry = new CacheEntry<>(key, newVa
85 put(K key, V value) argument
99 createObject(K key) argument
101 normalizeKey(K key) argument
106 private K key; field in class:LocaleObjectCache.CacheEntry
108 CacheEntry(K key, V value, ReferenceQueue<V> queue) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DMissingResourceException.java58 * @param key the key for the missing resource.
60 public MissingResourceException(String s, String className, String key) { argument
63 this.key = key;
68 * <code>message</code>, <code>className</code>, <code>key</code>,
76 * @param key
77 * the key for the missing resource.
84 MissingResourceException(String message, String className, String key, Throwable cause) { argument
87 this.key
123 private String key; field in class:MissingResourceException
[all...]
H A DDictionary.java31 * Every key and every value is an object. In any one <tt>Dictionary</tt>
32 * object, every key is associated with at most one value. Given a
33 * <tt>Dictionary</tt> and a key, the associated element can be looked up.
34 * Any non-<code>null</code> object can be used as a key and as a value.
100 * Returns the value to which the key is mapped in this dictionary.
102 * dictionary contains an entry for the specified key, the associated
105 * @return the value to which the key is mapped in this dictionary;
106 * @param key a key in this dictionary.
107 * <code>null</code> if the key i
112 get(Object key) argument
141 put(K key, V value) argument
154 remove(Object key) argument
[all...]
H A DMap.java37 * each key can map to at most one value.
44 * or set of key-value mappings. The <i>order</i> of a map is defined as
53 * object is a key in the map. A special case of this prohibition is that it
54 * is not permissible for a map to contain itself as a key. While it is
62 * which creates a new map with the same key-value mappings as its argument.
80 * to insert an ineligible key or value throws an unchecked exception,
82 * Attempting to query the presence of an ineligible key or value may throw an
85 * attempting an operation on an ineligible key or value whose completion
94 * containsKey(Object key)} method says: "returns {@code true} if and
95 * only if this map contains a mapping for a key {
164 containsKey(Object key) argument
212 get(Object key) argument
240 put(K key, V value) argument
272 remove(Object key) argument
586 getOrDefault(Object key, V defaultValue) argument
741 putIfAbsent(K key, V value) argument
784 remove(Object key, Object value) argument
836 replace(K key, V oldValue, V newValue) argument
884 replace(K key, V value) argument
966 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument
1043 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
1135 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
1233 merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) argument
[all...]
/libcore/luni/src/test/java/tests/security/interfaces/
H A DRSAPrivateCrtKeyTest.java25 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/ojluni/src/main/java/sun/nio/fs/
H A DAbstractWatchService.java42 // special key to indicate that watch service is closed
70 // used by AbstractWatchKey to enqueue key
71 final void enqueueKey(WatchKey key) { argument
72 pendingKeys.offer(key);
84 * Checks the key isn't the special CLOSE_KEY used to unblock threads when
87 private void checkKey(WatchKey key) { argument
88 if (key == CLOSE_KEY) {
90 enqueueKey(key);
98 WatchKey key = pendingKeys.poll();
99 checkKey(key);
[all...]
/libcore/luni/src/main/java/libcore/util/
H A DBasicLruCache.java39 * Returns the value for {@code key} if it exists in the cache or can be
44 public final V get(K key) { argument
45 if (key == null) {
46 throw new NullPointerException("key == null");
51 result = map.get(key);
58 result = create(key);
61 // NOTE: Another thread might have already inserted a value for |key| into the map.
67 map.put(key, result);
76 * Caches {@code value} for {@code key}. The value is moved to the head of
79 * @return the previous value mapped by {@code key}
82 put(K key, V value) argument
110 entryEvicted(K key, V value) argument
117 create(K key) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/util/
H A DKeyUtil.java40 * A utility class to get key length, valiate keys, etc.
45 * Returns the key size of the given key object in bits.
47 * @param key the key object, cannot be null
48 * @return the key size of the given key object in bits, or -1 if the
49 * key size is not accessible
51 public static final int getKeySize(Key key) { argument
54 if (key instanceo
[all...]
/libcore/luni/src/main/java/libcore/icu/
H A DCollationKeyICU.java20 * The key.
22 private final android.icu.text.CollationKey key; field in class:CollationKeyICU
24 public CollationKeyICU(String source, android.icu.text.CollationKey key) { argument
26 this.key = key;
33 otherKey = ((CollationKeyICU) other).key;
39 return key.compareTo(otherKey);
61 * @return hash value of collation key. Hash value is never 0.
66 return key.hashCode();
71 return key
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/interfaces/
H A DPBEKeyTest.java43 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 DSecretKeySpecTest.java38 * 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/harmony-tests/src/test/java/org/apache/harmony/tests/support/
H A DI.java21 String find(String key); argument
/libcore/support/src/test/java/tests/security/
H A DCipherSymmetricCryptHelper.java31 public void test(SecretKey key) throws Exception { argument
32 test(key, key);
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DMembershipRegistry.java57 for (MembershipKeyImpl key: keys) {
58 if (key.networkInterface().equals(interf)) {
60 // existing key or detect conflict
62 if (key.sourceAddress() == null)
63 return key;
67 // already have source-specific membership so return key
69 if (key.sourceAddress() == null)
71 if (source.equals(key.sourceAddress()))
72 return key;
81 * Add membership to the registry, returning a new membership key
83 add(MembershipKeyImpl key) argument
102 remove(MembershipKeyImpl key) argument
[all...]
/libcore/dom/src/test/java/org/w3c/domts/
H A DUserDataNotification.java23 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/ojluni/src/main/java/java/util/prefs/
H A DPreferenceChangeEvent.java52 private String key; field in class:PreferenceChangeEvent
65 * @param key The key of the preference that was changed.
69 public PreferenceChangeEvent(Preferences node, String key, argument
72 this.key = key;
86 * Returns the key of the preference that was changed.
88 * @return The key of the preference that was changed.
91 return key;
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DMockKeyAgreementSpi.java35 public void checkKeyType(Key key) throws InvalidKeyException { argument
36 if (!(key instanceof MockKey)) {
44 public void checkKeyType(Key key) throws InvalidKeyException { argument
45 System.err.println("Checking key of type " + key.getClass().getName());
46 if (!(key instanceof MockKey2)) {
55 public void checkKeyType(Key key) throws InvalidKeyException { argument
59 protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, argument
82 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { argument
83 checkKeyType(key);
87 engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) argument
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DConcurrentMap.java63 * {@code ConcurrentMap} as a key or value
80 * the key is absent. Implementations which support null values
88 default V getOrDefault(Object key, V defaultValue) { argument
90 return ((v = get(key)) != null) ? v : defaultValue;
129 * If the specified key is not already associated
133 * if (!map.containsKey(key))
134 * return map.put(key, value);
136 * return map.get(key);}</pre>
143 * @param key key wit
159 putIfAbsent(K key, V value) argument
190 remove(Object key, Object value) argument
222 replace(K key, V oldValue, V newValue) argument
254 replace(K key, V value) argument
327 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument
369 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
417 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
477 merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DExemptionMechanismSpiTest.java66 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 DMockKeyAgreementSpi.java34 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/support/src/test/java/org/apache/harmony/security/tests/support/
H A DSystemScope.java45 // Identities hash: key is the identity name
48 // Identities hash: key is the public key
92 public synchronized Identity getIdentity(PublicKey key) { argument
93 if (key == null) {
96 return (Identity) keys.get(key);
112 PublicKey key = identity.getPublicKey();
113 if (key != null && keys.containsKey(key)) {
114 throw new KeyManagementException("key '"
[all...]

Completed in 522 milliseconds

1234567891011>>