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

1234567891011>>

/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
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/luni/src/test/java/libcore/java/nio/channels/
H A DMembershipKeyTest.java36 private MembershipKey key; field in class:MembershipKeyTest
50 key = client.join(MULTICAST_ADDRESS, NETWORK_INTERFACE, sourceAddress);
52 key = client.join(MULTICAST_ADDRESS, NETWORK_INTERFACE);
59 key = null;
73 assertTrue(key.isValid());
75 assertFalse(key.isValid());
89 assertTrue(key.isValid());
90 key.drop();
91 assertFalse(key.isValid());
105 key
[all...]
/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}) 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 DNavigableMap.java48 * greater than or equal, and greater than a given key, returning
49 * {@code null} if there is no such key. Similarly, methods
55 * ascending or descending key order. The {@link #descendingMap}
99 * Returns a key-value mapping associated with the greatest key
100 * strictly less than the given key, or {@code null} if there is
101 * no such key.
103 * @param key the key
104 * @return an entry with the greatest key les
111 lowerEntry(K key) argument
125 lowerKey(K key) argument
140 floorEntry(K key) argument
154 floorKey(K key) argument
169 ceilingEntry(K key) argument
183 ceilingKey(K key) argument
198 higherEntry(K key) argument
212 higherKey(K key) argument
[all...]
H A DAbstractMap.java134 * for an entry with the specified key. If such an entry is found,
143 public boolean containsKey(Object key) { argument
145 if (key==null) {
154 if (key.equals(e.getKey()))
166 * for an entry with the specified key. If such an entry is found,
175 public V get(Object key) { argument
177 if (key==null) {
186 if (key.equals(e.getKey()))
208 public V put(K key, V value) { argument
217 * entry with the specified key
234 remove(Object key) argument
612 private final K key; field in class:AbstractMap.SimpleEntry
622 SimpleEntry(K key, V value) argument
742 private final K key; field in class:AbstractMap.SimpleImmutableEntry
752 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/java/io/
H A DExpiringCache.java79 synchronized String get(String key) { argument
83 Entry entry = entryFor(key);
90 synchronized void put(String key, String val) { argument
94 Entry entry = entryFor(key);
99 map.put(key, new Entry(System.currentTimeMillis(), val));
107 private Entry entryFor(String key) { argument
108 Entry entry = map.get(key);
112 map.remove(key);
124 for (String key: keySet) {
125 keys[i++] = key;
[all...]
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DMockMacSpi.java38 public void checkKeyType(Key key) throws InvalidKeyException { argument
39 if (!(key instanceof MockKey)) {
47 public void checkKeyType(Key key) throws InvalidKeyException { argument
48 System.err.println("Checking key of type " + key.getClass().getName());
49 if (!(key instanceof MockKey2)) {
58 public void checkKeyType(Key key) throws InvalidKeyException { argument
67 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 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

Completed in 611 milliseconds

1234567891011>>