Searched defs:key (Results 1 - 25 of 204) sorted by relevance

123456789

/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/support/src/test/java/tests/security/
H A DCipherSymmetricCryptHelper.java31 public void test(SecretKey key) throws Exception { argument
32 test(key, key);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/support/
H A DI.java4 String find(String key); argument
H A DA.java10 public String find(String key) { argument
11 return pp.findProp(key);
H A DP.java12 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/harmony-tests/src/test/java/org/apache/harmony/tests/support/
H A DA.java27 public String find(String key) { argument
28 return pp.findProp(key);
H A DI.java21 String find(String key); argument
H A DP.java29 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/ojluni/src/main/java/java/security/
H A DAlgorithmConstraints.java32 * keys (key sizes), and other algorithm parameters.
73 * Determines whether a key is granted permission for the specified
76 * This method is usually used to check key size and key usage.
79 * @param key the key
81 * @return true if the key can be used for all of the specified
85 * or the key is null
87 public boolean permits(Set<CryptoPrimitive> primitives, Key key); argument
90 * Determines whether an algorithm and the corresponding key ar
105 permits(Set<CryptoPrimitive> primitives, String algorithm, Key key, AlgorithmParameters parameters) argument
[all...]
H A DKeyFactorySpi.java36 * of a key factory for a particular algorithm.
39 * cryptographic keys of type {@code Key}) into <I>key specifications</I>
40 * (transparent representations of the underlying key material), and vice
44 * opaque key object from a given key specification (key material), or to
45 * retrieve the underlying key material of a key object in a suitable format.
47 * <P> Multiple compatible key specifications may exist for the same key
124 engineGetKeySpec(Key key, Class<T> keySpec) argument
139 engineTranslateKey(Key key) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DListResourceBundle.java54 * The first element of each pair is the key, which must be a
56 * that key.
127 public final Object handleGetObject(String key) { argument
132 if (key == null) {
135 return lookup.get(key); // this class ignores locales
176 * the key, which must be a <code>String</code>, and the second
177 * element is the value associated with that key. See the class
181 * key-value pair.
198 // key must be non-null String, value must be non-null
199 String key
[all...]
H A DPropertyResourceBundle.java164 public Object handleGetObject(String key) { argument
165 if (key == null) {
168 return lookup.get(key);
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...]
/libcore/ojluni/src/main/java/javax/crypto/
H A DSecretKeyFactorySpi.java36 * of a secret-key factory for a particular algorithm.
38 * <P> A provider should document all the key specifications supported by its
39 * secret key factory.
40 * For example, the DES secret-key factory supplied by the "SunJCE" provider
42 * keys, and that provider's secret-key factory for Triple DES keys supports
58 * provided key specification (key material).
60 * @param keySpec the specification (key material) of the secret key
62 * @return the secret key
91 engineGetKeySpec(SecretKey key, Class<?> keySpec) argument
106 engineTranslateKey(SecretKey key) argument
[all...]
/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...]
/libcore/ojluni/src/main/java/sun/net/
H A DNetProperties.java82 * @param key the property name.
89 static public String get(String key) { argument
90 String def = props.getProperty(key);
92 return System.getProperty(key, def);
103 * @param key the property name.
111 static public Integer getInteger(String key, int defval) { argument
115 val = System.getProperty(key, props.getProperty(key));
133 * @param key the property name.
140 static public Boolean getBoolean(String key) { argument
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DCipherInputStreamBenchmark.java49 private SecretKey key; field in class:CipherInputStreamBenchmark
61 key = generator.generateKey();
66 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec);
71 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec);
/libcore/dom/src/test/java/org/w3c/domts/
H A DUserDataMonitor.java41 * @param key
52 String key,
57 new UserDataNotification(operation, key, data, src, dst));
50 handle( short operation, String key, Object data, Node src, Node dst) argument
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/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/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/org/w3c/dom/
H A DUserDataHandler.java16 * 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
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DSecretKeyFactorySpiTest.java46 protected KeySpec engineGetKeySpec(SecretKey key, Class keySpec) argument
48 return super.engineGetKeySpec(key, keySpec);
52 protected SecretKey engineTranslateKey(SecretKey key) throws InvalidKeyException { argument
53 return super.engineTranslateKey(key);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMySecretKeyFactorySpi.java47 protected KeySpec engineGetKeySpec(SecretKey key, Class keySpec) argument
53 protected SecretKey engineTranslateKey(SecretKey key) argument
/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;

Completed in 736 milliseconds

123456789