Lines Matching defs:key

36  * 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
64 * @exception InvalidKeySpecException if the given key specification
65 * is inappropriate for this secret-key factory to produce a secret key.
71 * Returns a specification (key material) of the given key
74 * @param key the key
76 * @param keySpec the requested format in which the key material shall be
79 * @return the underlying key specification (key material) in the
82 * @exception InvalidKeySpecException if the requested key specification is
83 * inappropriate for the given key (e.g., the algorithms associated with
84 * <code>key</code> and <code>keySpec</code> do not match, or
85 * <code>key</code> references a key on a cryptographic hardware device
87 * key), or the given key cannot be dealt with
88 * (e.g., the given key has an algorithm or format not supported by this
89 * secret-key factory).
91 protected abstract KeySpec engineGetKeySpec(SecretKey key, Class keySpec)
95 * Translates a key object, whose provider may be unknown or
96 * potentially untrusted, into a corresponding key object of this
97 * secret-key factory.
99 * @param key the key whose provider is unknown or untrusted
101 * @return the translated key
103 * @exception InvalidKeyException if the given key cannot be processed
104 * by this secret-key factory.
106 protected abstract SecretKey engineTranslateKey(SecretKey key)