Lines Matching defs:KeyGenerator

43  * <p>KeyGenerator objects are reusable, i.e., after a key has been
44 * generated, the same KeyGenerator object can be re-used to generate further
57 * method in this KeyGenerator class that takes these two universally
83 * <p>In case the client does not explicitly initialize the KeyGenerator
88 * following standard <code>KeyGenerator</code> algorithms with the keysizes in
98 * "{@docRoot}/../technotes/guides/security/StandardNames.html#KeyGenerator">
99 * KeyGenerator section</a> of the
110 public class KeyGenerator {
138 * Creates a KeyGenerator object.
144 protected KeyGenerator(KeyGeneratorSpi keyGenSpi, Provider provider,
151 private KeyGenerator(String algorithm) throws NoSuchAlgorithmException {
153 List list = GetInstance.getServices("KeyGenerator", algorithm);
159 (algorithm + " KeyGenerator not available");
164 * Returns the algorithm name of this <code>KeyGenerator</code> object.
168 * <code>KeyGenerator</code> object.
170 * @return the algorithm name of this <code>KeyGenerator</code> object.
177 * Returns a <code>KeyGenerator</code> object that generates secret keys
182 * A new KeyGenerator object encapsulating the
190 * See the KeyGenerator section in the <a href=
191 * "{@docRoot}/../technotes/guides/security/StandardNames.html#KeyGenerator">
195 * @return the new <code>KeyGenerator</code> object.
205 public static final KeyGenerator getInstance(String algorithm)
207 return new KeyGenerator(algorithm);
211 * Returns a <code>KeyGenerator</code> object that generates secret keys
214 * <p> A new KeyGenerator object encapsulating the
223 * See the KeyGenerator section in the <a href=
224 * "{@docRoot}/../technotes/guides/security/StandardNames.html#KeyGenerator">
230 * @return the new <code>KeyGenerator</code> object.
246 public static final KeyGenerator getInstance(String algorithm,
249 Instance instance = JceSecurity.getInstance("KeyGenerator",
251 return new KeyGenerator((KeyGeneratorSpi)instance.impl,
256 * Returns a <code>KeyGenerator</code> object that generates secret keys
259 * <p> A new KeyGenerator object encapsulating the
265 * See the KeyGenerator section in the <a href=
266 * "{@docRoot}/../technotes/guides/security/StandardNames.html#KeyGenerator">
272 * @return the new <code>KeyGenerator</code> object.
285 public static final KeyGenerator getInstance(String algorithm,
287 Instance instance = JceSecurity.getInstance("KeyGenerator",
289 return new KeyGenerator((KeyGeneratorSpi)instance.impl,
294 * Returns the provider of this <code>KeyGenerator</code> object.
296 * @return the provider of this <code>KeyGenerator</code> object
343 ("KeyGenerator initType: " + initType);