Lines Matching defs:key
45 * the corresponding algorithm using the correct decryption key) and
49 * correct algorithm, key, padding scheme, etc., before being applied
62 * exact same algorithm, key, padding scheme, etc., that were used to seal the
66 * sealed object does not require knowledge of the decryption key. For example,
68 * decryption key, it could hand over the cipher object to
79 * given decryption key and the algorithm parameters (if any) that were stored
225 * <code>key</code> and the parameters (if any) that had been used in the
231 * @param key the key used to unseal the object.
240 * @exception InvalidKeyException if the given key cannot be used to unseal
242 * @exception NullPointerException if <code>key</code> is null.
244 public final Object getObject(Key key)
248 if (key == null) {
249 throw new NullPointerException("key is null");
253 return unseal(key, null);
318 * <code>key</code> and the parameters (if any) that had been used in the
324 * @param key the key used to unseal the object.
339 * @exception InvalidKeyException if the given key cannot be used to unseal
341 * @exception NullPointerException if <code>key</code> is null.
343 public final Object getObject(Key key, String provider)
347 if (key == null) {
348 throw new NullPointerException("key is null");
355 return unseal(key, provider);
364 private Object unseal(Key key, String provider)
415 c.init(Cipher.DECRYPT_MODE, key, params);
417 c.init(Cipher.DECRYPT_MODE, key);