Lines Matching refs: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
82 * <p>In case the client does not explicitly initialize the KeyGenerator
86 * <p> Android provides the following <code>KeyGenerator</code> algorithms:
159 * "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#KeyGenerator">
160 * KeyGenerator section</a> of the
169 public class KeyGenerator {
205 * Creates a KeyGenerator object.
211 protected KeyGenerator(KeyGeneratorSpi keyGenSpi, Provider provider,
220 pdebug.println("KeyGenerator." + algorithm + " algorithm from: " +
226 private KeyGenerator(String algorithm) throws NoSuchAlgorithmException {
229 GetInstance.getServices("KeyGenerator", algorithm);
235 (algorithm + " KeyGenerator not available");
241 pdebug.println("KeyGenerator." + algorithm + " algorithm from: " +
248 * Returns the algorithm name of this <code>KeyGenerator</code> object.
252 * <code>KeyGenerator</code> object.
254 * @return the algorithm name of this <code>KeyGenerator</code> object.
261 * Returns a <code>KeyGenerator</code> object that generates secret keys
266 * A new KeyGenerator object encapsulating the
274 * See the KeyGenerator section in the <a href=
275 * "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#KeyGenerator">
279 * @return the new <code>KeyGenerator</code> object.
289 public static final KeyGenerator getInstance(String algorithm)
291 return new KeyGenerator(algorithm);
295 * Returns a <code>KeyGenerator</code> object that generates secret keys
298 * <p> A new KeyGenerator object encapsulating the
307 * See the KeyGenerator section in the <a href=
308 * "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#KeyGenerator">
314 * @return the new <code>KeyGenerator</code> object.
330 public static final KeyGenerator getInstance(String algorithm,
334 Providers.checkBouncyCastleDeprecation(provider, "KeyGenerator", algorithm);
335 Instance instance = JceSecurity.getInstance("KeyGenerator",
337 return new KeyGenerator((KeyGeneratorSpi)instance.impl,
342 * Returns a <code>KeyGenerator</code> object that generates secret keys
345 * <p> A new KeyGenerator object encapsulating the
351 * See the KeyGenerator section in the <a href=
352 * "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#KeyGenerator">
358 * @return the new <code>KeyGenerator</code> object.
371 public static final KeyGenerator getInstance(String algorithm,
374 Providers.checkBouncyCastleDeprecation(provider, "KeyGenerator", algorithm);
375 Instance instance = JceSecurity.getInstance("KeyGenerator",
377 return new KeyGenerator((KeyGeneratorSpi)instance.impl,
382 * Returns the provider of this <code>KeyGenerator</code> object.
384 * @return the provider of this <code>KeyGenerator</code> object
431 ("KeyGenerator initType: " + initType);