Searched refs:key (Results 26 - 50 of 304) sorted by relevance

1234567891011>>

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/support/
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 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</code>) 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
122 engineGetKeySpec(Key key, Class<T> keySpec) argument
137 engineTranslateKey(Key key) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DNavigableMap.java47 * greater than or equal, and greater than a given key, returning
48 * {@code null} if there is no such key. Similarly, methods
54 * ascending or descending key order. The {@link #descendingMap}
98 * Returns a key-value mapping associated with the greatest key
99 * strictly less than the given key, or {@code null} if there is
100 * no such key.
102 * @param key the key
103 * @return an entry with the greatest key les
110 lowerEntry(K key) argument
124 lowerKey(K key) argument
139 floorEntry(K key) argument
153 floorKey(K key) argument
168 ceilingEntry(K key) argument
182 ceilingKey(K key) argument
197 higherEntry(K key) argument
211 higherKey(K key) argument
[all...]
H A DAbstractMap.java130 * for an entry with the specified key. If such an entry is found,
139 public boolean containsKey(Object key) { argument
141 if (key==null) {
150 if (key.equals(e.getKey()))
161 * for an entry with the specified key. If such an entry is found,
170 public V get(Object key) { argument
172 if (key==null) {
181 if (key.equals(e.getKey()))
202 public V put(K key, V value) { argument
210 * entry with the specified key
227 remove(Object key) argument
574 private final K key; field in class:AbstractMap.SimpleEntry
584 SimpleEntry(K key, V value) argument
704 private final K key; field in class:AbstractMap.SimpleImmutableEntry
714 SimpleImmutableEntry(K key, V value) 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...]
H A DExemptionMechanismSpi.java65 * Initializes this exemption mechanism with a key.
68 * that cannot be derived from the given <code>key</code>, the underlying
74 * @param key the key for this exemption mechanism
76 * @exception InvalidKeyException if the given key is inappropriate for
81 protected abstract void engineInit(Key key) argument
85 * Initializes this exemption mechanism with a key and a set of algorithm
95 * @param key the key for this exemption mechanism
98 * @exception InvalidKeyException if the given key i
105 engineInit(Key key, AlgorithmParameterSpec params) argument
130 engineInit(Key key, AlgorithmParameters params) argument
[all...]
H A DKeyAgreementSpi.java36 * of a particular key agreement algorithm.
40 * key generators (<code>KeyPairGenerator</code> or
42 * an intermediate phase of the key agreement protocol
45 * <p> For each of the correspondents in the key exchange,
47 * needs to be called. For example, if the key exchange is with one other
50 * If the key exchange is
54 * There may be any number of parties involved in a key exchange.
66 * Initializes this key agreement with the given key and source of
67 * randomness. The given key i
85 engineInit(Key key, SecureRandom random) argument
104 engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) argument
127 engineDoPhase(Key key, boolean lastPhase) argument
[all...]
/libcore/luni/src/test/java/tests/security/interfaces/
H A DRSAKeyTest.java32 * Case 1: check private key
33 * Case 2: check public key
40 RSAKey key = null;
42 // Case 1: check private key
43 key = (RSAKey) gen.generatePrivate(new RSAPrivateKeySpec(n, d));
44 assertEquals("invalid modulus", n, key.getModulus());
46 // Case 2: check public key
47 key = (RSAKey) gen.generatePublic(new RSAPublicKeySpec(n, e));
48 assertEquals("invalid modulus", n, key.getModulus());
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DCertificateStub.java42 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;
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/
H A DAuthenticationInfo.java120 static private boolean requestIsInProgress (String key) { argument
128 if ((t = requests.get(key)) == null) {
129 requests.put (key, c);
135 while (requests.containsKey(key)) {
148 static private void requestCompleted (String key) { argument
150 Thread thread = requests.get(key);
152 boolean waspresent = requests.remove(key) != null;
166 /** The type (server/proxy) of authentication this is. Used for key lookup */
169 /** The authentication scheme (basic/digest). Also used for key lookup */
262 String key
283 getServerAuth(String key) argument
297 getAuth(String key, URL url) argument
327 getProxyAuth(String key) argument
349 endAuthRequest(String key) argument
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DExpiringCache.java73 synchronized String get(String key) { argument
77 Entry entry = entryFor(key);
84 synchronized void put(String key, String val) { argument
88 Entry entry = entryFor(key);
93 map.put(key, new Entry(System.currentTimeMillis(), val));
101 private Entry entryFor(String key) { argument
102 Entry entry = (Entry) map.get(key);
106 map.remove(key);
119 String key = (String) iter.next();
120 keys[i++] = key;
[all...]
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DMockMacSpi.java39 public void checkKeyType(Key key) throws InvalidKeyException { argument
40 if (!(key instanceof MockKey)) {
48 public void checkKeyType(Key key) throws InvalidKeyException { argument
49 System.err.println("Checking key of type " + key.getClass().getName());
50 if (!(key instanceof MockKey2)) {
59 public void checkKeyType(Key key) throws InvalidKeyException { argument
68 protected void engineInit(Key key, AlgorithmParameterSpec params) argument
H A DMockCipherSpi.java40 public void checkKeyType(Key key) throws InvalidKeyException { argument
41 if (!(key instanceof MockKey)) {
49 public void checkKeyType(Key key) throws InvalidKeyException { argument
50 System.err.println("Checking key of type " + key.getClass().getName());
51 if (!(key instanceof MockKey2)) {
104 protected void engineInit(int opmode, Key key, SecureRandom random) argument
110 protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, argument
116 protected void engineInit(int opmode, Key key, AlgorithmParameters params, argument
124 protected void engineInit(int opmode, Key key, SecureRando argument
130 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
136 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
144 engineInit(int opmode, Key key, SecureRandom random) argument
150 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
156 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
164 engineInit(int opmode, Key key, SecureRandom random) argument
172 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
180 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
188 checkKeyType(Key key) argument
235 engineInit(int opmode, Key key, SecureRandom random) argument
240 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
247 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DMockMacSpi.java30 public void checkKeyType(Key key) throws InvalidKeyException { argument
31 if (!(key instanceof MockKey)) {
39 public void checkKeyType(Key key) throws InvalidKeyException { argument
40 if (!(key instanceof MockKey2)) {
49 public void checkKeyType(Key key) throws InvalidKeyException { argument
58 protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, argument
60 checkKeyType(key);
H A DKeyAgreementSpiTest.java48 protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, argument
50 return super.engineDoPhase(key, lastPhase);
71 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { argument
72 super.engineInit(key, random);
76 protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) argument
78 super.engineInit(key, params, random);
107 Key key = null;
109 kaSpi.engineInit(key, new SecureRandom());
115 kaSpi.engineInit(key, params, new SecureRandom());
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyExemptionMechanismSpi.java66 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...]
/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/ojluni/src/main/java/sun/security/util/
H A DKeyUtil.java47 * A utility class to get key length, valiate keys, etc.
52 * Returns the key size of the given key object in bits.
54 * @param key the key object, cannot be null
55 * @return the key size of the given key object in bits, or -1 if the
56 * key size is not accessible
58 public static final int getKeySize(Key key) { argument
61 if (key instanceo
127 validate(Key key) argument
[all...]
H A DCache.java32 * Abstract base class and factory for caches. A cache is a key-value mapping.
91 public abstract void put(K key, V value); argument
96 public abstract V get(Object key); argument
101 public abstract void remove(Object key); argument
219 public void put(K key, V value) { argument
223 public V get(Object key) { argument
227 public void remove(Object key) { argument
294 K key = entry.getKey();
295 if (key == null) {
296 // key i
360 put(K key, V value) argument
385 get(Object key) argument
402 remove(Object key) argument
459 newEntry(K key, V value, long expirationTime, ReferenceQueue<V> queue) argument
482 private K key; field in class:MemoryCache.HardCacheEntry
486 HardCacheEntry(K key, V value, long expirationTime) argument
519 private K key; field in class:MemoryCache.SoftCacheEntry
522 SoftCacheEntry(K key, V value, long expirationTime, ReferenceQueue<V> queue) 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/func/
H A DCipherWrapThread.java34 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());

Completed in 5108 milliseconds

1234567891011>>