Lines Matching defs:key

36  * 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.
48 * For example, a DSA public key may be specified using
50 * <code>X509EncodedKeySpec</code>. A key factory can be used to translate
51 * between compatible key specifications.
53 * <P> A provider should document all the key specifications supported by its
54 * key factory.
73 * Generates a public key object from the provided key
74 * specification (key material).
76 * @param keySpec the specification (key material) of the public key.
78 * @return the public key.
80 * @exception InvalidKeySpecException if the given key specification
81 * is inappropriate for this key factory to produce a public key.
87 * Generates a private key object from the provided key
88 * specification (key material).
90 * @param keySpec the specification (key material) of the private key.
92 * @return the private key.
94 * @exception InvalidKeySpecException if the given key specification
95 * is inappropriate for this key factory to produce a private key.
101 * Returns a specification (key material) of the given key
104 * the key material should be returned. It could, for example, be
106 * key material should be returned in an instance of the
109 * @param key the key.
112 * the key material should be returned.
114 * @return the underlying key specification (key material) in an instance
117 * @exception InvalidKeySpecException if the requested key specification is
118 * inappropriate for the given key, or the given key cannot be dealt with
119 * (e.g., the given key has an unrecognized format).
122 T engineGetKeySpec(Key key, Class<T> keySpec)
126 * Translates a key object, whose provider may be unknown or
127 * potentially untrusted, into a corresponding key object of this key
130 * @param key the key whose provider is unknown or untrusted.
132 * @return the translated key.
134 * @exception InvalidKeyException if the given key cannot be processed
135 * by this key factory.
137 protected abstract Key engineTranslateKey(Key key)