Searched refs:key (Results 1 - 25 of 304) 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 key = normalizeKey(key);
61 V newVal = createObject(key);
62 if (key == null || newVal == null) {
63 // subclass must return non-null key/value object
67 CacheEntry<K, V> newEntry = new CacheEntry<>(key, newVal, queue);
69 entry = map.putIfAbsent(key, newEntry);
75 map.put(key, newEntr
83 put(K key, V value) argument
97 createObject(K key) argument
99 normalizeKey(K key) argument
104 private K key; field in class:LocaleObjectCache.CacheEntry
106 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.java40 * each key can map to at most one value.
47 * or set of key-value mappings. The <i>order</i> of a map is defined as
56 * object is a key in the map. A special case of this prohibition is that it
57 * is not permissible for a map to contain itself as a key. While it is
65 * which creates a new map with the same key-value mappings as its argument.
83 * to insert an ineligible key or value throws an unchecked exception,
85 * Attempting to query the presence of an ineligible key or value may throw an
88 * attempting an operation on an ineligible key or value whose completion
97 * containsKey(Object key)} method says: "returns {@code true} if and
98 * only if this map contains a mapping for a key {
166 containsKey(Object key) argument
214 get(Object key) argument
242 put(K key, V value) argument
274 remove(Object key) argument
588 getOrDefault(Object key, V defaultValue) argument
743 putIfAbsent(K key, V value) argument
786 remove(Object key, Object value) argument
838 replace(K key, V oldValue, V newValue) argument
886 replace(K key, V value) argument
968 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument
1045 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
1137 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
1235 merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/ec/
H A DECKeyFactory.java91 * ECPublicKey or ECPrivateKey. Check the key and convert it
92 * to a Sun key if necessary. If the key is not an EC key
101 public static ECKey toECKey(Key key) throws InvalidKeyException { argument
102 if (key instanceof ECKey) {
103 ECKey ecKey = (ECKey)key;
107 return (ECKey)INSTANCE.translateKey(key);
112 * Check that the given EC key is valid.
114 private static void checkKey(ECKey key) throw argument
141 engineTranslateKey(Key key) argument
183 implTranslatePublicKey(PublicKey key) argument
204 implTranslatePrivateKey(PrivateKey key) argument
256 engineGetKeySpec(Key key, Class<T> keySpec) 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/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/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/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/luni/src/main/java/java/util/concurrent/
H A DConcurrentMap.java34 * {@code ConcurrentMap} as a key or value
51 * the key is absent. Implementations which support null values
59 default V getOrDefault(Object key, V defaultValue) { argument
61 return ((v = get(key)) != null) ? v : defaultValue;
100 * If the specified key is not already associated
104 * if (!map.containsKey(key))
105 * return map.put(key, value);
107 * return map.get(key);}</pre>
114 * @param key key wit
130 putIfAbsent(K key, V value) argument
161 remove(Object key, Object value) argument
193 replace(K key, V oldValue, V newValue) argument
225 replace(K key, V value) argument
298 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument
340 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
388 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
448 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...]
/libcore/ojluni/src/main/java/sun/security/x509/
H A DCertificateX509Key.java48 public static final String IDENT = "x509.info.key";
52 public static final String NAME = "key";
56 private PublicKey key; field in class:CertificateX509Key
61 * @param key the X509Key
63 public CertificateX509Key(PublicKey key) { argument
64 this.key = key;
75 key = X509Key.parse(val);
86 key = X509Key.parse(val);
90 * Return the key a
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/support/
H A DI.java4 String find(String key); argument

Completed in 977 milliseconds

1234567891011>>