Lines Matching defs:key
42 * of which are <i>key recovery</i>, <i>key weakening</i>, and
43 * <i>key escrow</i>.
69 // Store away the key at init() time for later comparison.
243 * <p>The method also makes sure that the key passed in is the same as
247 * @param key the key the crypto is going to use.
249 * @return whether the result blob of the same key has been generated
250 * successfully by this exemption mechanism; false if <code>key</code>
257 public final boolean isCryptoAllowed(Key key)
260 if (done && (key != null)) {
261 // Check if the key passed in is the same as the one
263 ret = keyStored.equals(key);
298 * Initializes this exemption mechanism with a key.
301 * that cannot be derived from the given <code>key</code>, the
307 * @param key the key for this exemption mechanism
309 * @exception InvalidKeyException if the given key is inappropriate for
314 public final void init(Key key)
319 keyStored = key;
320 exmechSpi.engineInit(key);
325 * Initializes this exemption mechanism with a key and a set of algorithm
335 * @param key the key for this exemption mechanism
338 * @exception InvalidKeyException if the given key is inappropriate for
345 public final void init(Key key, AlgorithmParameterSpec params)
351 keyStored = key;
352 exmechSpi.engineInit(key, params);
357 * Initializes this exemption mechanism with a key and a set of algorithm
367 * @param key the key for this exemption mechanism
370 * @exception InvalidKeyException if the given key is inappropriate for
377 public final void init(Key key, AlgorithmParameters params)
383 keyStored = key;
384 exmechSpi.engineInit(key, params);
389 * Generates the exemption mechanism key blob.
391 * @return the new buffer with the result key blob.
410 * Generates the exemption mechanism key blob, and stores the result in
443 * Generates the exemption mechanism key blob, and stores the result in
479 * Ensures that the key stored away by this ExemptionMechanism